Draft: Mount the nix store from hut in compute nodes #66
18
m/module/shared-nix-store.nix
Normal file
18
m/module/shared-nix-store.nix
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
# Don't make the nix store read-only, as this would prevent the overlay FS
|
||||||
|
# from being able to mount it.
|
||||||
|
boot.readOnlyNixStore = false;
|
||||||
|
|
||||||
|
# Mount the hut nix store via NFS
|
||||||
|
fileSystems."/mnt/hut-nix-store" = {
|
||||||
|
device = "hut:/nix/store";
|
||||||
|
fsType = "nfs";
|
||||||
|
options = [ "ro" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Create the work directory
|
||||||
|
#systemd.tmpfiles.rules = [
|
||||||
|
# "d /mnt/nix-overlay/work 0550 1000 root root -"
|
||||||
|
#];
|
||||||
|
}
|
@ -5,6 +5,7 @@
|
|||||||
../common/main.nix
|
../common/main.nix
|
||||||
../module/ceph.nix
|
../module/ceph.nix
|
||||||
../module/slurm-firewall.nix
|
../module/slurm-firewall.nix
|
||||||
|
../module/shared-nix-store.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Select the this using the ID to avoid mismatches
|
# Select the this using the ID to avoid mismatches
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
../common/main.nix
|
../common/main.nix
|
||||||
../module/ceph.nix
|
../module/ceph.nix
|
||||||
../module/slurm-firewall.nix
|
../module/slurm-firewall.nix
|
||||||
|
../module/shared-nix-store.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Select the this using the ID to avoid mismatches
|
# Select the this using the ID to avoid mismatches
|
||||||
|
Loading…
Reference in New Issue
Block a user