system: only set initialPassword if mutable users
This commit is contained in:
parent
8f7e6a72c1
commit
b61e2acb4f
@ -107,7 +107,6 @@ in {
|
||||
|
||||
users.mutableUsers = false;
|
||||
users.users.nullbite.hashedPasswordFile = "/persist/passfile/nullbite";
|
||||
users.users.nullbite.initialPassword = null;
|
||||
users.users.root.hashedPasswordFile = "/persist/passfile/root";
|
||||
};
|
||||
}
|
||||
|
@ -16,8 +16,12 @@ in
|
||||
packages = with pkgs; [
|
||||
keychain
|
||||
];
|
||||
initialPassword = lib.mkDefault "changeme";
|
||||
shell = pkgs.zsh;
|
||||
|
||||
# this should only be configured if mutableUsers is enabled, otherwise it
|
||||
# behaves the same as `password` and takes precedence over
|
||||
# `hashedPasswordFile`, which is undesirable.
|
||||
initialPassword = lib.mkIf config.users.mutableUsers (lib.mkDefault "changeme");
|
||||
};
|
||||
|
||||
users.groups.nullbite.gid = 1000;
|
||||
|
Loading…
x
Reference in New Issue
Block a user