nixpkgs/nixos/modules
andre4ik3 8fdcd28f9d
nixos/systemd/userdbd: add warning for system users >= UID 1000
When a disposition is not set in a user record, systemd determines user
disposition depending on the range the user's UID falls in. For system
users with UIDs above 1000, this will cause them to be incorrectly
identified as "regular" users.

This will cause `userctl` to report the user as a regular user, and more
importantly, `systemd-homed` will not run the first boot user creation
flow, as regular users are already present on the machine (when they are
really system users).

The most common source of high UID system users will undoubtedly be Nix
build users, so the warning provides additional guidance on how to
remove them or adjust their IDs to be within the system range.

The warning is shown only when userdbd/homed is enabled, and the option
to hide the warning is deliberately hidden, to ensure users will have to
read and acknowledge the warning before proceeding, as otherwise users
could end up deploying an OS with no users and no way of creating one
due to the first boot flow being skipped.
2025-08-15 16:17:58 +00:00
..
config treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
hardware nixos/hardware.fw-fanctrl: add package option and refactor using lib.attrsets.recursiveUpdate 2025-07-27 19:12:59 +02:00
i18n/input-method treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
image treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
installer nixos/installation-cd-base: fix installer expecting LUKS devices (#426005) 2025-08-02 12:54:56 +02:00
misc nixos/documentation/modular-services: init 2025-08-04 12:09:39 +02:00
profiles nixos/installation-device: don’t include stdenv (#418267) 2025-08-04 08:44:35 +02:00
programs nixos/vim: assert that both enable and defaultEditor is set (#421449) 2025-08-01 23:39:54 +08:00
security nixos/auditd: add built-in plugins (default disabled) 2025-08-03 22:19:26 +02:00
services nixos/tuned: enable upower with tuned-ppd (#431145) 2025-08-06 03:39:00 -04:00
system nixos/systemd/userdbd: add warning for system users >= UID 1000 2025-08-15 16:17:58 +00:00
tasks bcachefs: Fix systemd dependencies (#422961) 2025-07-30 14:20:15 -04:00
testing nixos/tests/systemd: Reuse intentional settings, not the entire Manager section 2025-07-29 02:27:30 -04:00
virtualisation nixos/oci-containers: clean-up dependsOn example 2025-08-01 10:28:53 +02:00
module-list.nix nixos/documentation/modular-services: init 2025-08-04 12:09:39 +02:00
rename.nix nixos/private-gpt: drop 2025-07-30 08:20:28 +02:00