nfsroot: fix nfs
This commit is contained in:
parent
3ce02a849c
commit
8d49db6fe9
|
@ -17,6 +17,10 @@ in {
|
|||
hypervisor = "cloud-hypervisor";
|
||||
mem = 2048;
|
||||
|
||||
# shares break nfs
|
||||
shares = lib.mkForce [];
|
||||
bootDiskType = "erofs";
|
||||
|
||||
volumes = map (export: {
|
||||
mountPoint = "/${export}";
|
||||
image = "/dev/zvol/server10/vm/nfsroot/${builtins.baseNameOf export}";
|
||||
|
|
|
@ -22,24 +22,24 @@
|
|||
# ro-store for netbooting Pi4
|
||||
/nix/store ${
|
||||
lib.concatMapStringsSep " " (subnet:
|
||||
"${subnet}(${opts "ro" 0})"
|
||||
"${subnet}(${opts "ro" 1})"
|
||||
) allowed
|
||||
}
|
||||
# rootfs for 100% nfsroot
|
||||
/var/lib/nfsroot/dacbert ${
|
||||
lib.concatMapStringsSep " " (subnet:
|
||||
"${subnet}(${opts "rw" 1})"
|
||||
"${subnet}(${opts "rw" 2})"
|
||||
) [ "${hostRegistry.hosts.dacbert.ip4}/32" ]
|
||||
}
|
||||
/var/lib/nfsroot/riscbert ${
|
||||
lib.concatMapStringsSep " " (subnet:
|
||||
"${subnet}(${opts "rw" 2})"
|
||||
"${subnet}(${opts "rw" 3})"
|
||||
) allowed
|
||||
}
|
||||
# shared space for dump-dvb project
|
||||
/var/lib/dump-dvb/whoopsie ${
|
||||
lib.concatMapStringsSep " " (subnet:
|
||||
"${subnet}(${opts "rw" 3})"
|
||||
"${subnet}(${opts "rw" 4})"
|
||||
) allowed
|
||||
}
|
||||
'';
|
||||
|
|
Loading…
Reference in New Issue