2024-06-16 00:39:47 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}: {
|
2024-06-16 01:44:21 +02:00
|
|
|
# "2a0f:be01:0:100::/64"
|
|
|
|
# "2a0f:be01:0:200::/64"
|
|
|
|
# "2a0f:be01:fe:f00::/56"
|
2024-06-16 00:39:47 +02:00
|
|
|
services.nfs = {
|
|
|
|
server = {
|
|
|
|
enable = true;
|
|
|
|
exports = ''
|
2024-06-16 01:44:21 +02:00
|
|
|
/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)
|
2024-06-16 00:39:47 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-06-16 01:58:11 +02:00
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
|
|
2049
|
|
|
|
/*
|
|
|
|
4000 4001 4002 20048
|
|
|
|
*/
|
|
|
|
];
|
2024-06-16 00:39:47 +02:00
|
|
|
networking.firewall.extraInputRules = ''
|
2024-06-16 01:52:06 +02:00
|
|
|
iifname wg0 ip6 saddr { 2a0f:be01:0:100::/64, 2a0f:be01:0:200::/64, 2a0f:be01:fe:f00::/56 } tcp dport { 2049 } accept
|
2024-06-16 00:39:47 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
fileSystems = {
|
|
|
|
"/export/shows" = {
|
|
|
|
device = "/home/xqtc/jellyfin/shows";
|
2024-06-16 01:44:21 +02:00
|
|
|
options = ["bind"];
|
2024-06-16 00:39:47 +02:00
|
|
|
};
|
|
|
|
"/export/movies" = {
|
|
|
|
device = "/home/xqtc/jellyfin/movies";
|
2024-06-16 01:44:21 +02:00
|
|
|
options = ["bind"];
|
2024-06-16 00:39:47 +02:00
|
|
|
};
|
|
|
|
"/export/music" = {
|
|
|
|
device = "/home/xqtc/jellyfin/music";
|
2024-06-16 01:44:21 +02:00
|
|
|
options = ["bind"];
|
2024-06-16 00:39:47 +02:00
|
|
|
};
|
2024-06-16 01:58:11 +02:00
|
|
|
"/mnt/frotting" = {
|
|
|
|
device = "[2a0f:be01:0:200::211]:/";
|
|
|
|
fsType = "nfs";
|
|
|
|
options = ["nfsvers=4.2"];
|
|
|
|
};
|
2024-06-16 00:39:47 +02:00
|
|
|
};
|
|
|
|
}
|