summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGrigory Shipunov2022-06-08 18:47:16 +0200
committerGrigory Shipunov2022-06-08 18:47:16 +0200
commit3a40a3af28b03615f9478825bb3f3e2b8028ceab (patch)
tree475f67a86ea8fa57001f152ebd6757f6dc7c6676 /modules
parentb8608870c9774d49ed62f398751fda8b49ed0c8d (diff)
flake update
Diffstat (limited to 'modules')
-rw-r--r--modules/dvb-dump-nfs-automount.nix23
1 files changed, 23 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..182b844
--- /dev/null
+++ b/modules/dvb-dump-nfs-automount.nix
@@ -0,0 +1,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";
+ };
+}
+
+