From 9fc786c3a44cf660adaf67e3d4950ff051cb6418 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 27 Feb 2018 20:28:49 +0100 Subject: [PATCH] Create /home with the right permissions Without this, it will be created with 700 permissions. --- nixos/modules/config/users-groups.nix | 5 +++-- 1 file 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