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

This reverts commits 9d0de0dc57ce97ab9cc3d73a66e914d718e4af3b,
27d2857a9927aa197b9679b9a2dcf59b97c06907. '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" ] system.activationScripts.nix = stringAfter [ "etc" "users" ]
'' ''
# Create directories in /nix. install -m 0755 -d /nix/var/nix/{gcroots,profiles}/per-user
${nix}/bin/nix ping-store --no-net
# Subscribe the root user to the NixOS channel by default. # Subscribe the root user to the NixOS channel by default.
if [ ! -e "/root/.nix-channels" ]; then if [ ! -e "/root/.nix-channels" ]; then