From 3a40a3af28b03615f9478825bb3f3e2b8028ceab Mon Sep 17 00:00:00 2001 From: Grigory Shipunov Date: Wed, 8 Jun 2022 18:47:16 +0200 Subject: [PATCH] flake update --- flake.nix | 2 +- modules/dvb-dump-nfs-automount.nix | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 modules/dvb-dump-nfs-automount.nix diff --git a/flake.nix b/flake.nix index 96deb37..1fefae4 100644 --- a/flake.nix +++ b/flake.nix @@ -30,7 +30,7 @@ ./modules/emacs.nix ./modules/radio.nix ./modules/tlp.nix - ./modules/chromium.nix + # ./modules/chromium.nix ./modules/wireguard.nix ./modules/binary-caches.nix ./modules/science.nix 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"; + }; +} + +