nixos/hosts/gunter/nfs.nix

20 lines
410 B
Nix
Raw Normal View History

2024-03-05 14:42:52 +00:00
{ pkgs, ... }: {
services.rpcbind.enable = true;
systemd.mounts = [{
type = "nfs4";
mountConfig = {
Options = "rw,soft,noatime";
};
what = "nas.home.2rjus.net:/mnt/hdd-pool/media";
where = "/mnt/nas/media";
}];
systemd.automounts = [{
wantedBy = [ "multi-user.target" ];
automountConfig = {
TimeoutIdleSec = "5min";
};
where = "/mnt/nas/media";
}];
}