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

This reverts commits 9d0de0dc57,
27d2857a99. 'nix ping-store' is an
experimental command so it doesn't work in Nix 2.4 unless you set
'experimental-features = nix-command' in nix.conf.
This commit is contained in:
Eelco Dolstra 2020-05-07 12:38:12 +02:00
parent 4acf1e6650
commit 9bf75a27f4
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE

View File

@ -510,8 +510,7 @@ in
system.activationScripts.nix = stringAfter [ "etc" "users" ]
''
# Create directories in /nix.
${nix}/bin/nix ping-store --no-net
install -m 0755 -d /nix/var/nix/{gcroots,profiles}/per-user
# Subscribe the root user to the NixOS channel by default.
if [ ! -e "/root/.nix-channels" ]; then