automount nfs share app server

This commit is contained in:
Geir Okkenhaug Jerstad 2024-05-23 18:34:38 +02:00
parent c9be732740
commit 6f6e6f87b8
2 changed files with 6 additions and 2 deletions

View file

@ -22,7 +22,11 @@
{ device = "/dev/disk/by-uuid/E251-F60A"; { device = "/dev/disk/by-uuid/E251-F60A";
fsType = "vfat"; fsType = "vfat";
}; };
fileSystems."/home/geir/nfs" =
{ device = "files:/mnt/storage";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" "x-systemd.idle-timeout=600" ];
};
swapDevices = [ ]; swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking

View file

@ -2,7 +2,7 @@
{ {
services.jellyfin = { services.jellyfin = {
enable = true; enable = true;
group = "users"; group = "users";
}; };
networking.firewall.allowedTCPPorts = [ 8096 8920 ]; networking.firewall.allowedTCPPorts = [ 8096 8920 ];
networking.firewall.allowedUDPPorts = [ 1900 7359 ]; networking.firewall.allowedUDPPorts = [ 1900 7359 ];