f6954309e8
After 4b128008c5d9fde881ce1b0a25e60ae0415a14d5 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. |
||
---|---|---|
.. | ||
fonts | ||
gtk | ||
xdg | ||
appstream.nix | ||
console.nix | ||
debug-info.nix | ||
fanout.nix | ||
i18n.nix | ||
iproute2.nix | ||
ldap.nix | ||
ldso.nix | ||
locale.nix | ||
malloc.nix | ||
mysql.nix | ||
networking.nix | ||
nix-channel.nix | ||
nix-flakes.nix | ||
nix-remote-build.nix | ||
nix.nix | ||
no-x-libs.nix | ||
nsswitch.nix | ||
power-management.nix | ||
pulseaudio.nix | ||
qt.nix | ||
resolvconf.nix | ||
shells-environment.nix | ||
stevenblack.nix | ||
stub-ld.nix | ||
swap.nix | ||
sysctl.nix | ||
system-environment.nix | ||
system-path.nix | ||
terminfo.nix | ||
unix-odbc-drivers.nix | ||
update-users-groups.pl | ||
users-groups.nix | ||
vte.nix | ||
zram.nix |