From cc0caac098b56b67300778c8a1738f8a16e08442 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 5 Feb 2018 21:12:17 +0100 Subject: Move creation of /root to the activation script ...so it appears in a new installation before rebooting the system. --- nixos/modules/config/users-groups.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nixos/modules/config') diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix index c1102d558101..92670ba31f50 100644 --- a/nixos/modules/config/users-groups.nix +++ b/nixos/modules/config/users-groups.nix @@ -533,6 +533,8 @@ in { -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 -- cgit 1.4.1