summaryrefslogtreecommitdiff
path: root/modules/dvb-dump-nfs-automount.nix
blob: 2dce2eac7829998351540e4d868a94d1fe9e1ed3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ pkgs, lib, ... }:
{

  environment.systemPackages = with pkgs; [ nfs-utils ];
  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" ];
    requires = [ "wg-quick-wg-dvb.service" ];
    automountConfig = {
      TimeoutIdleSec = "600";
    };
    where = "/mnt/dvb";
  }];
}