Revert "nix-daemon.nix: Use 'nix ping-store' to initialize directories"
This reverts commits9d0de0dc57,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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user