nixpkgs/nixos
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
..
doc/manual nixos/doc: don't prescribe OS / manual name 2023-02-23 20:53:04 +01:00
lib nixos-render-docs: add options asciidoc converter 2023-02-21 18:19:00 +01:00
maintainers treewide: fix backwards smart apostrophes 2023-02-06 07:24:42 -05:00
modules nixos/update-users-groups: let hashedPassword take precedence over initialHashedPassword 2023-02-25 14:27:35 -05:00
tests nixos/tests/unifi: inherit allowUnfree into test node 2023-02-25 19:12:08 +01:00
COPYING
default.nix
README
release-combined.nix
release-small.nix
release.nix nixos/manual: clean up default.nix a bit 2023-02-12 11:58:20 +01:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
https://nixos.org/nixos and in the manual in doc/manual.