update h001 to autofs mount the NAS storage
This commit is contained in:
parent
34e37861a7
commit
2f049b8138
3 changed files with 27 additions and 8 deletions
18
hosts/h001/autofs.nix
Normal file
18
hosts/h001/autofs.nix
Normal 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
16
hosts/h001/flake.lock
generated
|
|
@ -80,11 +80,11 @@
|
||||||
"common": {
|
"common": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "flakes/common",
|
"dir": "flakes/common",
|
||||||
"lastModified": 1766078770,
|
"lastModified": 1766965969,
|
||||||
"narHash": "sha256-zzH5ejNAs/B42GGLVaa+SLt11PU0RPVKAdvTZUJolRU=",
|
"narHash": "sha256-uKxbAXX9bLzl7j4D0REN+JNntINdk/e/ry5a6hSqW0I=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "49f82a343492cd5c47797f4f1b843bb5453a7c7b",
|
"rev": "34e37861a716ee5e3498900bc4639a715bcc4adc",
|
||||||
"revCount": 953,
|
"revCount": 981,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.joshuabell.xyz/ringofstorms/dotfiles"
|
"url": "https://git.joshuabell.xyz/ringofstorms/dotfiles"
|
||||||
},
|
},
|
||||||
|
|
@ -1416,11 +1416,11 @@
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "flakes/secrets",
|
"dir": "flakes/secrets",
|
||||||
"lastModified": 1766078770,
|
"lastModified": 1766965969,
|
||||||
"narHash": "sha256-zzH5ejNAs/B42GGLVaa+SLt11PU0RPVKAdvTZUJolRU=",
|
"narHash": "sha256-uKxbAXX9bLzl7j4D0REN+JNntINdk/e/ry5a6hSqW0I=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "49f82a343492cd5c47797f4f1b843bb5453a7c7b",
|
"rev": "34e37861a716ee5e3498900bc4639a715bcc4adc",
|
||||||
"revCount": 953,
|
"revCount": 981,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.joshuabell.xyz/ringofstorms/dotfiles"
|
"url": "https://git.joshuabell.xyz/ringofstorms/dotfiles"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,7 @@
|
||||||
./mods
|
./mods
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
./containers
|
./containers
|
||||||
|
./autofs.nix
|
||||||
(
|
(
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
rec {
|
rec {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue