nixos/hosts/gunter/nfs.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
508 B
Nix
Raw Permalink Normal View History

2024-03-05 14:42:52 +00:00
{ pkgs, ... }:
{
2024-03-05 14:54:53 +00:00
environment.systemPackages = with pkgs; [ nfs-utils ];
2024-03-05 14:42:52 +00:00
services.rpcbind.enable = true;
systemd.mounts = [
{
2024-03-05 14:54:53 +00:00
type = "nfs";
2024-03-05 14:42:52 +00:00
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";
}
];
}