mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +03:00
nixos/users-group: Add 'homeMode' option.
This commit is contained in:
parent
9bce1fb5ac
commit
9fc01af1cc
4 changed files with 37 additions and 2 deletions
|
@ -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}) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue