dotfiles/hosts/h001/autofs.nix
2025-12-28 18:56:05 -06:00

18 lines
309 B
Nix

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