Prevent the overlay to be mounted in stage1
This commit is contained in:
parent
d145ee9b2c
commit
320c58ce48
@ -20,7 +20,9 @@
|
|||||||
# layer the disk nix store. The destination is still the nix store in
|
# 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
|
# /nix/store (confusing). We need rw access, as the daemon need to write the
|
||||||
# lock files to build derivations locally.
|
# 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";
|
device = "overlay";
|
||||||
fsType = "overlay";
|
fsType = "overlay";
|
||||||
options = [ "lowerdir=/mnt/hut-nix-store,upperdir=/nix/store,workdir=/mnt/nix-work" ];
|
options = [ "lowerdir=/mnt/hut-nix-store,upperdir=/nix/store,workdir=/mnt/nix-work" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user