riscbert: configure fileSystems for nfsroot

This commit is contained in:
Astro 2022-10-27 22:35:49 +02:00
parent f2930ac63e
commit 17637cf4f0

View File

@ -25,7 +25,18 @@
tmpOnTmpfs = true;
};
fileSystems."/mnt" = {
fileSystems."/mnt/sd" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
};
# install kernel+initrd onto sd card
fileSystems."/boot" = {
device = "/mnt/sd/boot";
fsType = "none";
options = [ "bind" ];
};
fileSystems."/" = {
device = "${hostRegistry.hosts.nfsroot.ip4}:/var/lib/nfsroot/riscbert";
fsType = "nfs";
options = [ "nfsvers=3" "proto=tcp" "nolock" "hard" "async" "rw" ];
@ -63,9 +74,4 @@
lib.genAttrs [ "libffi" "libuv" "openssh" "openssl" ] (p: pkgs.${p}.overrideAttrs (oa: { doCheck = false; checkPhase = ""; }));
system.stateVersion = "22.05";
fileSystems."/" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
};
}