diff options
| -rw-r--r-- | hosts/desktop/configuration.nix | 1 | ||||
| -rw-r--r-- | hosts/laptop/configuration.nix | 1 | ||||
| -rw-r--r-- | modules/nfs.nix | 16 |
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" + ]; + }; +} |
