Create /home with the right permissions

Without this, it will be created with 700 permissions.
wip/yesman
Eelco Dolstra 6 years ago
parent 9e8cf40c7e
commit 9fc786c3a4
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE
  1. 5
      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

Loading…
Cancel
Save