Loading nixos/modules/config/update-users-groups.pl +4 −4 Original line number Diff line number Diff line Loading @@ -239,12 +239,12 @@ foreach my $u (@{$spec->{users}}) { chmod oct($u->{homeMode}), $u->{home}; } if (defined $u->{passwordFile}) { if (-e $u->{passwordFile}) { $u->{hashedPassword} = read_file($u->{passwordFile}); if (defined $u->{hashedPasswordFile}) { if (-e $u->{hashedPasswordFile}) { $u->{hashedPassword} = read_file($u->{hashedPasswordFile}); chomp $u->{hashedPassword}; } else { warn "warning: password file ‘$u->{passwordFile}’ does not exist\n"; warn "warning: password file ‘$u->{hashedPasswordFile}’ does not exist\n"; } } elsif (defined $u->{password}) { $u->{hashedPassword} = hashPassword($u->{password}); Loading nixos/modules/config/users-groups.nix +1 −1 Original line number Diff line number Diff line Loading @@ -264,7 +264,7 @@ let }; passwordFile = mkOption { type = with types; nullOr (passwdEntry str); type = with types; nullOr str; default = null; visible = false; description = lib.mdDoc "Deprecated alias of hashedPasswordFile"; Loading nixos/tests/shadow.nix +1 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ in import ./make-test-python.nix ({ pkgs, ... }: { }; users.berta = { isNormalUser = true; hashedPassword = hashed_bcrypt; hashedPasswordFile = (pkgs.writeText "hashed_bcrypt" hashed_bcrypt).outPath; shell = pkgs.bash; }; users.yesim = { Loading Loading
nixos/modules/config/update-users-groups.pl +4 −4 Original line number Diff line number Diff line Loading @@ -239,12 +239,12 @@ foreach my $u (@{$spec->{users}}) { chmod oct($u->{homeMode}), $u->{home}; } if (defined $u->{passwordFile}) { if (-e $u->{passwordFile}) { $u->{hashedPassword} = read_file($u->{passwordFile}); if (defined $u->{hashedPasswordFile}) { if (-e $u->{hashedPasswordFile}) { $u->{hashedPassword} = read_file($u->{hashedPasswordFile}); chomp $u->{hashedPassword}; } else { warn "warning: password file ‘$u->{passwordFile}’ does not exist\n"; warn "warning: password file ‘$u->{hashedPasswordFile}’ does not exist\n"; } } elsif (defined $u->{password}) { $u->{hashedPassword} = hashPassword($u->{password}); Loading
nixos/modules/config/users-groups.nix +1 −1 Original line number Diff line number Diff line Loading @@ -264,7 +264,7 @@ let }; passwordFile = mkOption { type = with types; nullOr (passwdEntry str); type = with types; nullOr str; default = null; visible = false; description = lib.mdDoc "Deprecated alias of hashedPasswordFile"; Loading
nixos/tests/shadow.nix +1 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ in import ./make-test-python.nix ({ pkgs, ... }: { }; users.berta = { isNormalUser = true; hashedPassword = hashed_bcrypt; hashedPasswordFile = (pkgs.writeText "hashed_bcrypt" hashed_bcrypt).outPath; shell = pkgs.bash; }; users.yesim = { Loading