Draft: Mount the nix store from hut in compute nodes #66
@ -20,7 +20,9 @@
|
||||
# layer the disk nix store. The destination is still the nix store in
|
||||
# /nix/store (confusing). We need rw access, as the daemon need to write the
|
||||
# lock files to build derivations locally.
|
||||
fileSystems."/nix/store" = {
|
||||
# HACK: Use /nix//store to prevent the overlay to be mounted on boot, see:
|
||||
# https://github.com/NixOS/nixpkgs/blob/17a46d09ac123d0da3a26855bf3af7db01f9c751/nixos/lib/utils.nix#L14
|
||||
fileSystems."/nix//store" = {
|
||||
device = "overlay";
|
||||
fsType = "overlay";
|
||||
options = [ "lowerdir=/mnt/hut-nix-store,upperdir=/nix/store,workdir=/mnt/nix-work" ];
|
||||
|
Loading…
Reference in New Issue
Block a user