From 2f049b81388af2e596785f4961c4ac6625a4d7b9 Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Sun, 28 Dec 2025 18:56:05 -0600 Subject: [PATCH] update h001 to autofs mount the NAS storage --- hosts/h001/autofs.nix | 18 ++++++++++++++++++ hosts/h001/flake.lock | 16 ++++++++-------- hosts/h001/flake.nix | 1 + 3 files changed, 27 insertions(+), 8 deletions(-) create mode 100644 hosts/h001/autofs.nix diff --git a/hosts/h001/autofs.nix b/hosts/h001/autofs.nix new file mode 100644 index 00000000..f996f383 --- /dev/null +++ b/hosts/h001/autofs.nix @@ -0,0 +1,18 @@ +{ pkgs, ... }: +{ + environment.systemPackages = [ + pkgs.nfs-utils + ]; + services.autofs = { + enable = true; + autoMaster = + let + conf = pkgs.writeText "nfs" '' + h002 -fstype=nfs4,rw,nofail,nfsvers=4 h002:/ + ''; + in + '' + /nfs file:${conf} + ''; + }; +} diff --git a/hosts/h001/flake.lock b/hosts/h001/flake.lock index 1292e85c..a6c10d0e 100644 --- a/hosts/h001/flake.lock +++ b/hosts/h001/flake.lock @@ -80,11 +80,11 @@ "common": { "locked": { "dir": "flakes/common", - "lastModified": 1766078770, - "narHash": "sha256-zzH5ejNAs/B42GGLVaa+SLt11PU0RPVKAdvTZUJolRU=", + "lastModified": 1766965969, + "narHash": "sha256-uKxbAXX9bLzl7j4D0REN+JNntINdk/e/ry5a6hSqW0I=", "ref": "refs/heads/master", - "rev": "49f82a343492cd5c47797f4f1b843bb5453a7c7b", - "revCount": 953, + "rev": "34e37861a716ee5e3498900bc4639a715bcc4adc", + "revCount": 981, "type": "git", "url": "https://git.joshuabell.xyz/ringofstorms/dotfiles" }, @@ -1416,11 +1416,11 @@ }, "locked": { "dir": "flakes/secrets", - "lastModified": 1766078770, - "narHash": "sha256-zzH5ejNAs/B42GGLVaa+SLt11PU0RPVKAdvTZUJolRU=", + "lastModified": 1766965969, + "narHash": "sha256-uKxbAXX9bLzl7j4D0REN+JNntINdk/e/ry5a6hSqW0I=", "ref": "refs/heads/master", - "rev": "49f82a343492cd5c47797f4f1b843bb5453a7c7b", - "revCount": 953, + "rev": "34e37861a716ee5e3498900bc4639a715bcc4adc", + "revCount": 981, "type": "git", "url": "https://git.joshuabell.xyz/ringofstorms/dotfiles" }, diff --git a/hosts/h001/flake.nix b/hosts/h001/flake.nix index bb1d8aad..72dc662b 100644 --- a/hosts/h001/flake.nix +++ b/hosts/h001/flake.nix @@ -88,6 +88,7 @@ ./mods ./nginx.nix ./containers + ./autofs.nix ( { config, pkgs, ... }: rec {