Create /home with the right permissions

Without this, it will be created with 700 permissions.
This commit is contained in:
Eelco Dolstra 2018-02-27 20:28:49 +01:00
parent 9e8cf40c7e
commit 9fc786c3a4
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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