forked from c3d2/nix-config
riscbert: configure fileSystems for nfsroot
This commit is contained in:
parent
f2930ac63e
commit
17637cf4f0
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user