summaryrefslogtreecommitdiff
path: root/modules/dvb-dump-nfs-automount.nix
blob: 182b8442a1bae460f7a6f939302f1b48c53457f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ pkgs, lib, ... }:
{
  services.rpcbind.enable = true;

  systemd.mounts = {
    type = "nfs";
    mountConfig = {
      Options = "noatime";
    };
    what = "10.13.37.5:/";
    where = "/mnt/dvb";
  };

  systemd.automounts = {
    wantedBy = [ "multi-user.target" ];
    automountConfig= {
      TimeoutIdleSec = "600";
    };
    where = "/mnt/dvb";
  };
}