nix-daemon.nix: Use 'nix ping-store' to initialize directories

This commit is contained in:
Eelco Dolstra 2019-10-09 20:40:33 +02:00
parent 2c97f0669d
commit 27d2857a99
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

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