NFS share

This commit is contained in:
2026-07-11 08:57:42 +02:00
parent 6141e2b16b
commit abfd1b090d
2 changed files with 12 additions and 1 deletions
+2 -1
View File
@@ -42,7 +42,8 @@
users.groups.media = {};
users.users.jellyfin.extraGroups = [ "media" ];
networking.firewall.allowedTCPPorts = [ 80 443 ];
networking.firewall.allowedTCPPorts = [ 80 443 111 2049 4000 4001 4002 20048 /* NFS */ ];
networking.firewall.allowedUDPPorts = [ 111 2049 4000 4001 4002 20048 /* NFS */ ];
programs.zsh.enable = true;
security.polkit.enable = true;
+10
View File
@@ -35,6 +35,16 @@ let
};
in
{
services.nfs.server = {
enable = true;
statdPort = 4000;
lockdPort = 4001;
mountdPort = 4002;
exports = ''
/media 192.168.50.0/24(rw,sync,no_subtree_check,all_squash,anonuid=1000,anongid=1000,fsid=0)
'';
};
services.jellyfin.enable = true;
services.tailscale = {