nix-daemon.nix: Use 'nix ping-store' to initialize directories
This commit is contained in:
parent
2c97f0669d
commit
27d2857a99
|
@ -445,7 +445,8 @@ in
|
|||
|
||||
system.activationScripts.nix = stringAfter [ "etc" "users" ]
|
||||
''
|
||||
install -m 0755 -d /nix/var/nix/{gcroots,profiles}/per-user
|
||||
# Create directories in /nix.
|
||||
${nix}/bin/nix ping-store
|
||||
|
||||
# Subscribe the root user to the NixOS channel by default.
|
||||
if [ ! -e "/root/.nix-channels" ]; then
|
||||
|
|
Loading…
Reference in New Issue