forked from mirrors/nixpkgs
fix users.mutableUsers = false; install in iso
(cherry picked from commit 9bc8bcbbdc
)
Signed-off-by: Domen Kožar <domen@dev.si>
This commit is contained in:
parent
89697b0fc1
commit
432490e319
|
@ -250,7 +250,7 @@ chroot $mountPoint /nix/var/nix/profiles/system/activate
|
|||
|
||||
|
||||
# Ask the user to set a root password.
|
||||
if [ -t 0 ] ; then
|
||||
if [ "$(chroot $mountPoint nix-instantiate --eval '<nixos>' -A config.users.mutableUsers)" = true ] && [ -t 0 ] ; then
|
||||
echo "setting root password..."
|
||||
chroot $mountPoint /var/setuid-wrappers/passwd
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue