diff options
| author | Grigory Shipunov | 2022-06-08 18:47:49 +0200 |
|---|---|---|
| committer | Grigory Shipunov | 2022-06-08 18:47:49 +0200 |
| commit | 3924624e7516464d2f24cd19b62c02072436850c (patch) | |
| tree | e19e56c5355a0a2354b341b844819b1992783ffb /modules/dvb-dump-nfs-automount.nix | |
| parent | 3a40a3af28b03615f9478825bb3f3e2b8028ceab (diff) | |
YOLO
Diffstat (limited to 'modules/dvb-dump-nfs-automount.nix')
| -rw-r--r-- | modules/dvb-dump-nfs-automount.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/modules/dvb-dump-nfs-automount.nix b/modules/dvb-dump-nfs-automount.nix index 182b844..9032402 100644 --- a/modules/dvb-dump-nfs-automount.nix +++ b/modules/dvb-dump-nfs-automount.nix @@ -1,23 +1,26 @@ { pkgs, lib, ... }: { + + environment.systemPackages = with pkgs; [ nfs-utils ]; services.rpcbind.enable = true; - systemd.mounts = { + systemd.mounts = [{ type = "nfs"; mountConfig = { Options = "noatime"; }; what = "10.13.37.5:/"; where = "/mnt/dvb"; - }; + }]; - systemd.automounts = { + systemd.automounts = [{ wantedBy = [ "multi-user.target" ]; + requires = [ "wg-quick-wg-dvb.service" ]; automountConfig= { TimeoutIdleSec = "600"; }; where = "/mnt/dvb"; - }; + }]; } |
