summaryrefslogtreecommitdiffstats
path: root/nixos/modules/config/update-users-groups.pl
diff options
context:
space:
mode:
authorFederico Beffa <beffa@fbengineering.ch>2022-04-10 21:06:19 +0200
committerFederico Beffa <beffa@fbengineering.ch>2022-04-11 13:16:38 +0200
commit9fc01af1cc8f9ffe40bf87b96cbafd1810856ea7 (patch)
tree28b41ffd2bb580e8c78edd1818eec28fde3d2792 /nixos/modules/config/update-users-groups.pl
parent9bce1fb5ac21d52bc37589f1f2586d0f442d63f0 (diff)
nixos/users-group: Add 'homeMode' option.
Diffstat (limited to 'nixos/modules/config/update-users-groups.pl')
-rw-r--r--nixos/modules/config/update-users-groups.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/config/update-users-groups.pl b/nixos/modules/config/update-users-groups.pl
index 26ce561013b6..6ceb668a595e 100644
--- a/nixos/modules/config/update-users-groups.pl
+++ b/nixos/modules/config/update-users-groups.pl
@@ -226,7 +226,7 @@ foreach my $u (@{$spec->{users}}) {
if ($u->{createHome}) {
make_path($u->{home}, { mode => 0700 }) if ! -e $u->{home} and ! $is_dry;
chown $u->{uid}, $u->{gid}, $u->{home};
- chmod 0700, $u->{home};
+ chmod oct($u->{homeMode}), $u->{home};
}
if (defined $u->{passwordFile}) {