mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-23 01:00:32 +01:00
Add 111 for a definetly working nfs
This commit is contained in:
parent
de7a1acb39
commit
169c0bc552
|
@ -131,7 +131,7 @@ with lib; {
|
||||||
Host frotting
|
Host frotting
|
||||||
HostName 2a0f:be01:0:100::a3
|
HostName 2a0f:be01:0:100::a3
|
||||||
User communism
|
User communism
|
||||||
'';
|
'';
|
||||||
|
|
||||||
services.mullvad-vpn.enable = true;
|
services.mullvad-vpn.enable = true;
|
||||||
|
|
||||||
|
|
|
@ -4,36 +4,35 @@
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
# "2a0f:be01:0:100::/64"
|
# "2a0f:be01:0:100::/64"
|
||||||
# "2a0f:be01:0:200::/64"
|
# "2a0f:be01:0:200::/64"
|
||||||
# "2a0f:be01:fe:f00::/56"
|
# "2a0f:be01:fe:f00::/56"
|
||||||
services.nfs = {
|
services.nfs = {
|
||||||
server = {
|
server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
exports = ''
|
exports = ''
|
||||||
/export 2a0f:be01:0:100::/64(ro,insecure,crossmnt,async,fsid=0,no_subtree_check) 2a0f:be01:0:200::/64(ro,insecure,crossmnt,async,fsid=0,no_subtree_check) 2a0f:be01:fe:f00::/56(ro,insecure,crossmnt,async,fsid=0,no_subtree_check)
|
/export 2a0f:be01:0:100::/64(ro,insecure,crossmnt,async,fsid=0,no_subtree_check) 2a0f:be01:0:200::/64(ro,insecure,crossmnt,async,fsid=0,no_subtree_check) 2a0f:be01:fe:f00::/56(ro,insecure,crossmnt,async,fsid=0,no_subtree_check)
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 2049 ];
|
allowedTCPPorts = [111 2049 /* 4000 4001 4002 20048 */];
|
||||||
networking.firewall.extraInputRules = ''
|
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 = {
|
fileSystems = {
|
||||||
"/export/shows" = {
|
"/export/shows" = {
|
||||||
device = "/home/xqtc/jellyfin/shows";
|
device = "/home/xqtc/jellyfin/shows";
|
||||||
options = [ "bind" ];
|
options = ["bind"];
|
||||||
};
|
};
|
||||||
"/export/movies" = {
|
"/export/movies" = {
|
||||||
device = "/home/xqtc/jellyfin/movies";
|
device = "/home/xqtc/jellyfin/movies";
|
||||||
options = [ "bind" ];
|
options = ["bind"];
|
||||||
};
|
};
|
||||||
"/export/music" = {
|
"/export/music" = {
|
||||||
device = "/home/xqtc/jellyfin/music";
|
device = "/home/xqtc/jellyfin/music";
|
||||||
options = [ "bind" ];
|
options = ["bind"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue