Add 111 for a definetly working nfs

This commit is contained in:
xqtc161 2024-06-16 01:44:21 +02:00
parent de7a1acb39
commit 169c0bc552
2 changed files with 10 additions and 11 deletions

View file

@ -4,9 +4,9 @@
inputs,
...
}: {
# "2a0f:be01:0:100::/64"
# "2a0f:be01:0:200::/64"
# "2a0f:be01:fe:f00::/56"
# "2a0f:be01:0:100::/64"
# "2a0f:be01:0:200::/64"
# "2a0f:be01:fe:f00::/56"
services.nfs = {
server = {
enable = true;
@ -16,24 +16,23 @@
};
};
networking.firewall.allowedTCPPorts = [ 2049 ];
allowedTCPPorts = [111 2049 /* 4000 4001 4002 20048 */];
networking.firewall.extraInputRules = ''
iifname wg0 ip6 saddr { 2a0f:be01:0:100::/64, 2a0f:be01:0:200::/64, 2a0f:be01:fe:f00::/56 } tcp dport 2049 accept
iifname wg0 ip6 saddr { 2a0f:be01:0:100::/64, 2a0f:be01:0:200::/64, 2a0f:be01:fe:f00::/56 } tcp dport { 111, 2049 } accept
'';
fileSystems = {
"/export/shows" = {
device = "/home/xqtc/jellyfin/shows";
options = [ "bind" ];
options = ["bind"];
};
"/export/movies" = {
device = "/home/xqtc/jellyfin/movies";
options = [ "bind" ];
options = ["bind"];
};
"/export/music" = {
device = "/home/xqtc/jellyfin/music";
options = [ "bind" ];
options = ["bind"];
};
};
}