From d74b079d01ece5538a66323e9ec65dd799e08681 Mon Sep 17 00:00:00 2001 From: Astra Logical Date: Mon, 8 Jun 2026 15:57:00 -0400 Subject: [PATCH] Robin NFS and mdadm config --- modules/hosts/robin/configuration.nix | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/modules/hosts/robin/configuration.nix b/modules/hosts/robin/configuration.nix index 740e47e..5f927fe 100644 --- a/modules/hosts/robin/configuration.nix +++ b/modules/hosts/robin/configuration.nix @@ -26,6 +26,33 @@ openssh.enable = true; }; + services.nfs = { + server.enable = true; + server.exports = '' + /export/yarr 192.168.1.0/16(rw,secure,anonuid=1000,anongid=1000,all_squash) + /export 192.168.1.0/16(ro,fsid=0,root_squash,subtree_check,secure) + ''; + }; + + # RAID + boot.swraid = { + enable = true; + mdadmConf = '' + ARRAY /dev/md0 level=raid10 num-devices=4 metadata=1.2 UUID=f94b90a5:574f242f:00596ed9:a2b369c7 + ''; + }; + + fileSystems."/mnt/raid" = { + device = "/dev/disk/by-uuid/208bee23-4723-42c2-ac4e-c902eb530f80"; + fsType = "ext4"; + options = [ "defaults" "nofail" "_netdev" ]; + }; + + fileSystems."/export/yarr" = { + device = "/mnt/raid/yarr"; + options = [ "bind" ]; + }; + boot = { loader = { systemd-boot.enable = true; @@ -34,6 +61,7 @@ }; kernelPackages = pkgs.linuxPackages_latest; + supportedFilesystems = [ "nfs" ]; }; time.timeZone = "America/New_York";