nixpkgs/nixos/modules/config
Lily Foster bfa0bff644 nixos/update-users-groups: let hashedPassword take precedence over initialHashedPassword
Without this change, users that have both `initialHashedPassword` and
`hashedPassword` set will have `initialHashedPassword` take precedence,
but only for the first time `/etc/passwd` is generated. After that,
`hashedPassword` takes precedence. This is surprising behavior as it
would generally be expected for `hashedPassword` to win if both are set.

This wouldn't be a noticeable problem (and an assert could just be made
instead) if the users-groups module did not default the
`root.intialHashedPassword` value to `!`, to prevent login by default.
That means that users who set `root.hashedPassword` and use an ephemeral
rootfs (i.e. `/etc/passwd` is created every boot) are not able to log in
to the root account by default, unless they switch to a new generation
during the same boot (i.e. `/etc/passwd` already exists and
`hashedPassword` is used instead of `initialHashedPassword`) or they set
`root.initialHashedPassword = null` (which is unintuitive and seems
redundant).
2023-02-25 14:27:35 -05:00
..
fonts nixos/*: convert internal option descriptions to MD 2022-08-31 16:32:54 +02:00
gtk nixos/modules/config/gtk/gtk-icon-cache: do not generate icon caches for files in $out/share/icons 2022-11-03 18:45:29 +03:00
krb5 krb5Full: turn into alias 2022-12-08 23:08:44 +01:00
xdg nixos/xdg/portal: add option xdgOpenUsePortal which sets NIXOS_XDG_OPEN_USE_PORTAL 2022-11-12 18:45:32 +01:00
appstream.nix nixos/config: invariant option docs MD conversions 2022-07-24 13:01:18 +02:00
console.nix nixos/console,nixos/systemd-initrd: remove now-unnecessary wrapped bin inclusions 2023-02-20 07:02:55 -05:00
debug-info.nix treewide: attempt at markdown option docs 2022-06-12 12:44:38 +02:00
gnu.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
i18n.nix nixos/i18n: use glibcLocales from the host packages 2022-09-05 12:57:53 +02:00
iproute2.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
ldap.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
locale.nix nixos/config: invariant option docs MD conversions 2022-07-24 13:01:18 +02:00
malloc.nix nixos/*: md-convert options with unordered lists 2022-08-31 16:32:53 +02:00
mysql.nix nixos: fix backticks in Markdown descriptions 2023-01-21 18:08:38 +01:00
networking.nix nixos/*: convert internal option descriptions to MD 2022-08-31 16:32:54 +02:00
no-x-libs.nix Merge pull request #214815 from SFrijters/vim-no-x-libs 2023-02-17 11:13:47 +01:00
nsswitch.nix nixos/config: invariant option docs MD conversions 2022-07-24 13:01:18 +02:00
power-management.nix nixos/power-management: fix deadlock with post-resume.{target,service} 2022-11-03 12:00:00 +00:00
pulseaudio.nix Merge pull request #180976 from Yarny0/pulseaudio-wrapper 2022-09-17 14:45:26 +02:00
qt.nix nixos/qt: set QT_PLUGIN_PATH and QML2_IMPORT_PATH when enabled 2023-01-15 22:08:47 -05:00
resolvconf.nix nixos/*: automatically convert option docs to MD 2022-08-03 22:46:41 +02:00
shells-environment.nix nixos/environment: fix variables type 2022-12-27 21:09:10 -05:00
stevenblack.nix nixos/*: remove trailing period in mkEnableOptions 2023-02-08 15:23:34 +01:00
swap.nix nixos/swap: fix creation on BTRFS and refactor assertions 2023-01-17 06:47:21 +08:00
sysctl.nix rmem_max: define merge function 2022-11-08 10:30:10 -05:00
system-environment.nix nixos/environment: accept path for variables and sessionVariables 2022-11-15 21:23:54 -05:00
system-path.nix nixos/*: convert internal option descriptions to MD 2022-08-31 16:32:54 +02:00
terminfo.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
unix-odbc-drivers.nix nixos/config: invariant option docs MD conversions 2022-07-24 13:01:18 +02:00
update-users-groups.pl nixos/update-users-groups: let hashedPassword take precedence over initialHashedPassword 2023-02-25 14:27:35 -05:00
users-groups.nix Merge pull request #153127 from eyJhb/user-uids-fix 2023-01-30 11:32:10 +01:00
vte.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
zram.nix nixos/zram: fix default swapDevices 2023-02-07 09:16:16 +08:00