diff options
| author | Grisha Shipunov | 2024-12-31 13:52:57 +0000 |
|---|---|---|
| committer | Grisha Shipunov | 2024-12-31 13:52:57 +0000 |
| commit | 50066a4d208b83e63d5ebb4bc64e740e78deae59 (patch) | |
| tree | b09004fb2121e2ffb4d46bb45ff65b024749d7e2 /modules/dvb-dump-nfs-automount.nix | |
| parent | 677abb734403d4f412dbbdc83f372cc606d9d519 (diff) | |
revert toaster
Diffstat (limited to 'modules/dvb-dump-nfs-automount.nix')
| -rw-r--r-- | modules/dvb-dump-nfs-automount.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/dvb-dump-nfs-automount.nix b/modules/dvb-dump-nfs-automount.nix new file mode 100644 index 0000000..2dce2ea --- /dev/null +++ b/modules/dvb-dump-nfs-automount.nix @@ -0,0 +1,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"; + }]; +} + + |
