nfsroot: fix nfs

This commit is contained in:
Astro 2022-09-14 21:34:44 +02:00
parent 3ce02a849c
commit 8d49db6fe9
2 changed files with 8 additions and 4 deletions

View File

@ -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}";

View File

@ -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
}
'';