From b2bb9e3d7f08f5240cce4030ee4b968a44aa648e Mon Sep 17 00:00:00 2001 From: Glen Goodwin Date: Fri, 15 Dec 2023 13:05:28 -0500 Subject: [PATCH] feat: add nfs mounts --- common/nixos/nfs.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 common/nixos/nfs.nix diff --git a/common/nixos/nfs.nix b/common/nixos/nfs.nix new file mode 100644 index 0000000..21f70e5 --- /dev/null +++ b/common/nixos/nfs.nix @@ -0,0 +1,33 @@ +{...}: { + fileSystems = { + "/media" = { + device = "192.168.10.2:/mnt/tank/media"; + fsType = "nfs"; + options = ["x-systemd.automount" "noauto" "x-systemd.after=network-online.target" "x-systemd.mount-timeout=90"]; + }; + + "/books" = { + device = "192.168.10.2:/mnt/tank/books"; + fsType = "nfs"; + options = ["x-systemd.automount" "noauto" "x-systemd.after=network-online.target" "x-systemd.mount-timeout=90"]; + }; + + "/music" = { + device = "192.168.10.2:/mnt/tank/music"; + fsType = "nfs"; + options = ["x-systemd.automount" "noauto" "x-systemd.after=network-online.target" "x-systemd.mount-timeout=90"]; + }; + + "/projects" = { + device = "192.168.10.2:/mnt/tank/projects"; + fsType = "nfs"; + options = ["x-systemd.automount" "noauto" "x-systemd.after=network-online.target" "x-systemd.mount-timeout=90"]; + }; + + "/backups" = { + device = "192.168.10.2:/mnt/tank/backups"; + fsType = "nfs"; + options = ["x-systemd.automount" "noauto" "x-systemd.after=network-online.target" "x-systemd.mount-timeout=90"]; + }; + }; +}