mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nix-daemon.nix: Use 'nix ping-store' to initialize directories
This commit is contained in:
parent
2c97f0669d
commit
27d2857a99
1 changed files with 2 additions and 1 deletions
|
@ -445,7 +445,8 @@ in
|
||||||
|
|
||||||
system.activationScripts.nix = stringAfter [ "etc" "users" ]
|
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.
|
# Subscribe the root user to the NixOS channel by default.
|
||||||
if [ ! -e "/root/.nix-channels" ]; then
|
if [ ! -e "/root/.nix-channels" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue