summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian <[email protected]>2026-07-02 20:30:08 -0500
committerChristian <[email protected]>2026-07-02 20:30:08 -0500
commitbd316d98d957f6024f4287dc1eb4484e8f4d5da7 (patch)
tree572f5330f34e797f8a24be2558959d404b0f4977
parent6449393ff48ab505e55862ade1093a2f1ce4d243 (diff)
Book NFS
-rw-r--r--hosts/desktop/configuration.nix1
-rw-r--r--hosts/laptop/configuration.nix1
-rw-r--r--modules/nfs.nix16
3 files changed, 18 insertions, 0 deletions
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"
+ ];
+ };
+}