From bd316d98d957f6024f4287dc1eb4484e8f4d5da7 Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 2 Jul 2026 20:30:08 -0500 Subject: Book NFS --- hosts/desktop/configuration.nix | 1 + hosts/laptop/configuration.nix | 1 + modules/nfs.nix | 16 ++++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 modules/nfs.nix diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix index 1774637..f330b89 100644 --- a/hosts/desktop/configuration.nix +++ b/hosts/desktop/configuration.nix @@ -15,6 +15,7 @@ # ../../modules/local-llm.nix ../../modules/kvm.nix ../../modules/wireguard.nix + ../../modules/nfs.nix ]; boot.loader.grub = { diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 764d42b..7ba2810 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -13,6 +13,7 @@ ../../modules/common.nix ../../modules/re.nix ../../modules/wireguard.nix + ../../modules/nfs.nix ]; boot.loader.grub = { diff --git a/modules/nfs.nix b/modules/nfs.nix new file mode 100644 index 0000000..f997f28 --- /dev/null +++ b/modules/nfs.nix @@ -0,0 +1,16 @@ +{ ... }: + +{ + fileSystems."/mnt/books" = { + device = "10.67.40.1:/home/christian/books"; + fsType = "nfs"; + options = [ + "x-systemd.automount" + "x-systemd.requires=wg-quick-wg0.service" + "x-systemd.after=wg-quick-wg0.service" + "noauto" + "soft" + "timeo=30" + ]; + }; +} -- cgit v1.2.3