about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2018-09-29 18:02:49 -0700
committerJamey Sharp <jamey@minilop.net>2018-09-30 11:08:12 -0700
commitdab5c632bd2664555292665192cd9f096b5c5bcf (patch)
treea7910d1f4a15b7ba408eecfd8c86201f4786ed84 /nixos
parentae3d3b0fffe4827a7f126368e01fd8c2c8a4c7fe (diff)
downloadnixlib-dab5c632bd2664555292665192cd9f096b5c5bcf.tar
nixlib-dab5c632bd2664555292665192cd9f096b5c5bcf.tar.gz
nixlib-dab5c632bd2664555292665192cd9f096b5c5bcf.tar.bz2
nixlib-dab5c632bd2664555292665192cd9f096b5c5bcf.tar.lz
nixlib-dab5c632bd2664555292665192cd9f096b5c5bcf.tar.xz
nixlib-dab5c632bd2664555292665192cd9f096b5c5bcf.tar.zst
nixlib-dab5c632bd2664555292665192cd9f096b5c5bcf.zip
nixos/activation: don't create /run/nix
Nix 2.0 no longer uses these directories.

/run/nix/current-load was moved to /nix/var/nix/current-load in 2017
(Nix commit d7653dfc6dea076ecbe00520c6137977e0fced35). Anyway,
src/build-remote/build-remote.cc will create the current-load directory
if it doesn't exist already.

/run/nix/remote-stores seems to have been deprecated since 2014 (Nix
commit b1af336132cfe8a6e4c54912cc512f8c28d4ebf3) when the documentation
for $NIX_OTHER_STORES was removed, and support for it was dropped
entirely in 2016 (Nix commit 4494000e04122f24558e1436e66d20d89028b4bd).
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/system/activation/activation-script.nix3
1 files changed, 0 insertions, 3 deletions
diff --git a/nixos/modules/system/activation/activation-script.nix b/nixos/modules/system/activation/activation-script.nix
index 93a1b13a81dd..b74153885318 100644
--- a/nixos/modules/system/activation/activation-script.nix
+++ b/nixos/modules/system/activation/activation-script.nix
@@ -128,9 +128,6 @@ in
       ''
         # Various log/runtime directories.
 
-        mkdir -m 0755 -p /run/nix/current-load # for distributed builds
-        mkdir -m 0700 -p /run/nix/remote-stores
-
         mkdir -m 0755 -p /var/log
 
         touch /var/log/wtmp /var/log/lastlog # must exist