From 6f6e6f87b8e15cf51c8bfef6a03ba696a2de8ab9 Mon Sep 17 00:00:00 2001 From: Geir Okkenhaug Jerstad Date: Thu, 23 May 2024 18:34:38 +0200 Subject: [PATCH] automount nfs share app server --- appserver/hardware-configuration.nix | 6 +++++- appserver/jellyfin.nix | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/appserver/hardware-configuration.nix b/appserver/hardware-configuration.nix index da515cb..e73ccf8 100644 --- a/appserver/hardware-configuration.nix +++ b/appserver/hardware-configuration.nix @@ -22,7 +22,11 @@ { device = "/dev/disk/by-uuid/E251-F60A"; fsType = "vfat"; }; - + fileSystems."/home/geir/nfs" = + { device = "files:/mnt/storage"; + fsType = "nfs"; + options = [ "x-systemd.automount" "noauto" "x-systemd.idle-timeout=600" ]; + }; swapDevices = [ ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking diff --git a/appserver/jellyfin.nix b/appserver/jellyfin.nix index dc29fd5..f4625e7 100644 --- a/appserver/jellyfin.nix +++ b/appserver/jellyfin.nix @@ -2,7 +2,7 @@ { services.jellyfin = { enable = true; - group = "users"; + group = "users"; }; networking.firewall.allowedTCPPorts = [ 8096 8920 ]; networking.firewall.allowedUDPPorts = [ 1900 7359 ];