nixpkgs/nixos/modules
Maximilian Bosch f6954309e8
nixos/users-groups: warn on ambiguous password settings
After 4b128008c5 it took me a while in a
test setup to find out why `root` didn't have the password anymore I
declared in my config.

Because of that I got reminded how the order of preference works for the
password options:

    hashedPassword > password > hashedPasswordFile

If the user is new, initialPassword & initialHashedPassword are also
relevant. Also, the override is silent in contrast to any other
conflicting definition in NixOS.

To make this less surprising I decided to warn in such a case -
assertions would probably break too much that technically works as
intended.

Also removed the `initialHashedPassword` for `root`. This would cause a
warning whenever you set something in your own config and a `!` is added
automatically by `users-groups.pl`.

`systemd-sysusers` also seems to implement these precedence rules, so
having the warning for that case also seems useful.
2024-02-09 16:44:35 +01:00
..
config nixos/users-groups: warn on ambiguous password settings 2024-02-09 16:44:35 +01:00
hardware nixos/corectrl: add package option 2024-01-23 15:35:44 -05:00
i18n/input-method nixos/fcitx5: allow using the wayland frontend instead of the fcitx5 one 2024-01-04 15:06:58 -05:00
image nixos/repart: add option for configuring sector size 2024-01-27 17:19:32 -08:00
installer Merge pull request #279174 from SuperSandro2000/iso-minimal-override 2024-01-14 15:26:29 -05:00
misc nixos/version: add ANSI_COLOR 2024-02-08 00:14:53 +01:00
profiles nixos/hardened: update hardened profile to new recommendations 2024-01-27 20:43:58 +00:00
programs Merge pull request #275621 from Yarny0/tsm-client-update 2024-02-06 17:17:40 +01:00
security pam_usb, nixos/pam-usb: drop 2024-02-08 02:59:45 +01:00
services Merge pull request #286063 from yaxitech/github-runner-node-runtimes-286059 2024-02-08 07:20:13 -08:00
system Merge pull request #285315 from jmbaur/sysupdate-fixes 2024-02-07 03:01:49 -05:00
tasks Merge pull request #279852 from Madouura/pr/bcachefs 2024-01-25 01:11:04 +01:00
testing nixos/test-instrumentation: use file to set root password 2024-01-18 23:08:13 +01:00
virtualisation nixos/libvirt: changing process priority for oom killer 2024-02-04 19:54:02 +03:00
module-list.nix pam_usb, nixos/pam-usb: drop 2024-02-08 02:59:45 +01:00
rename.nix prayer: remove 2023-11-10 20:44:28 -03:00