diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-02-27 20:28:49 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-02-27 20:28:49 +0100 |
commit | 9fc786c3a44cf660adaf67e3d4950ff051cb6418 (patch) | |
tree | 6fbeedc7956dcbe2ab4f449bcbe02fc770bf8a1d /nixos/modules/config/users-groups.nix | |
parent | 9e8cf40c7e9220900888fa898da11062ffe4f657 (diff) |
Create /home with the right permissions
Without this, it will be created with 700 permissions.
Diffstat (limited to 'nixos/modules/config/users-groups.nix')
-rw-r--r-- | nixos/modules/config/users-groups.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix index 92670ba31f50..11e969b760e0 100644 --- a/nixos/modules/config/users-groups.nix +++ b/nixos/modules/config/users-groups.nix @@ -529,12 +529,13 @@ in { system.activationScripts.users = stringAfter [ "stdio" ] '' + install -m 0700 -d /root + install -m 0755 -d /home + ${pkgs.perl}/bin/perl -w \ -I${pkgs.perlPackages.FileSlurp}/lib/perl5/site_perl \ -I${pkgs.perlPackages.JSON}/lib/perl5/site_perl \ ${./update-users-groups.pl} ${spec} - - install -m 0700 -d /root ''; # for backwards compatibility |