update h001 to autofs mount the NAS storage

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-12-28 18:56:05 -06:00
parent 34e37861a7
commit 2f049b8138
3 changed files with 27 additions and 8 deletions

18
hosts/h001/autofs.nix Normal file
View file

@ -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}
'';
};
}

16
hosts/h001/flake.lock generated
View file

@ -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"
},

View file

@ -88,6 +88,7 @@
./mods
./nginx.nix
./containers
./autofs.nix
(
{ config, pkgs, ... }:
rec {