diff --git a/hosts/riscbert/default.nix b/hosts/riscbert/default.nix index 6ac7044f..7a801724 100644 --- a/hosts/riscbert/default.nix +++ b/hosts/riscbert/default.nix @@ -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"; - }; }