about summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-09-14 11:31:01 +0000
committerAlyssa Ross <hi@alyssa.is>2023-09-14 11:31:01 +0000
commit4a027948f943c5e81d32b1ca70a86aa64cb7bae3 (patch)
tree332a139a9dc30c492425e987c172fc7d15325590 /nixos/modules/config
parentd8be5d0c710412b5187815b52c2ddcc6661466ea (diff)
parent12aa32e71e41eb2fbf3d59db9eaacc6bedacf877 (diff)
downloadnixlib-4a027948f943c5e81d32b1ca70a86aa64cb7bae3.tar
nixlib-4a027948f943c5e81d32b1ca70a86aa64cb7bae3.tar.gz
nixlib-4a027948f943c5e81d32b1ca70a86aa64cb7bae3.tar.bz2
nixlib-4a027948f943c5e81d32b1ca70a86aa64cb7bae3.tar.lz
nixlib-4a027948f943c5e81d32b1ca70a86aa64cb7bae3.tar.xz
nixlib-4a027948f943c5e81d32b1ca70a86aa64cb7bae3.tar.zst
nixlib-4a027948f943c5e81d32b1ca70a86aa64cb7bae3.zip
Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts:
	pkgs/applications/radio/soapysdr/default.nix
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/update-users-groups.pl8
-rw-r--r--nixos/modules/config/users-groups.nix2
2 files changed, 5 insertions, 5 deletions
diff --git a/nixos/modules/config/update-users-groups.pl b/nixos/modules/config/update-users-groups.pl
index 3785ba8c5fb8..7c6851473f42 100644
--- a/nixos/modules/config/update-users-groups.pl
+++ b/nixos/modules/config/update-users-groups.pl
@@ -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});
diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix
index 4893d28924eb..5158974c27b3 100644
--- a/nixos/modules/config/users-groups.nix
+++ b/nixos/modules/config/users-groups.nix
@@ -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";