mirror of
https://git.gay/xqtc/nixos-config
synced 2025-05-08 18:37:29 +02:00
Compare commits
4 commits
8a61160ee8
...
bd0bd3cfd6
Author | SHA1 | Date | |
---|---|---|---|
bd0bd3cfd6 | |||
448433e958 | |||
9d0e3f61be | |||
31b71ff6ac |
3 changed files with 44 additions and 9 deletions
hosts/x86_64-linux/beleth
|
@ -17,6 +17,7 @@ with lib; {
|
|||
./networking.nix
|
||||
./git.nix
|
||||
./docker.nix
|
||||
./nfs.nix
|
||||
../../gc.nix
|
||||
../../../common
|
||||
];
|
||||
|
@ -135,6 +136,7 @@ with lib; {
|
|||
services.mullvad-vpn.enable = true;
|
||||
|
||||
# Open ports in the firewall.
|
||||
networking.nftables.enable = true;
|
||||
networking.firewall.allowedTCPPorts = [22 80 443];
|
||||
networking.firewall.allowedUDPPorts = [51820];
|
||||
|
||||
|
|
42
hosts/x86_64-linux/beleth/nfs.nix
Normal file
42
hosts/x86_64-linux/beleth/nfs.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
# "2a0f:be01:0:100::/64"
|
||||
# "2a0f:be01:0:200::/64"
|
||||
# "2a0f:be01:fe:f00::/56"
|
||||
services.nfs = {
|
||||
server = {
|
||||
enable = true;
|
||||
exports = ''
|
||||
/export 2a0f:be01:0:100::/64(ro,async,fsid=0,no_subtree_check) 2a0f:be01:0:200::/64(ro,async,fsid=0,no_subtree_check) 2a0f:be01:fe:f00::/56(ro,async,fsid=0,no_subtree_check)
|
||||
/export/shows 2a0f:be01:0:100::/64(ro,async,no_subtree_check) 2a0f:be01:0:200::/64(ro,async,no_subtree_check) 2a0f:be01:fe:f00::/56(ro,async,no_subtree_check)
|
||||
/export/movies 2a0f:be01:0:100::/64(ro,async,no_subtree_check) 2a0f:be01:0:200::/64(ro,async,no_subtree_check) 2a0f:be01:fe:f00::/56(ro,async,no_subtree_check)
|
||||
/export/music 2a0f:be01:0:100::/64(ro,async,no_subtree_check) 2a0f:be01:0:200::/64(ro,async,no_subtree_check) 2a0f:be01:fe:f00::/56(ro,async,no_subtree_check)
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 2049 ];
|
||||
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
|
||||
'';
|
||||
|
||||
|
||||
fileSystems = {
|
||||
"/export/shows" = {
|
||||
device = "/home/xqtc/jellyfin/shows";
|
||||
options = [ "bind" ];
|
||||
};
|
||||
"/export/movies" = {
|
||||
device = "/home/xqtc/jellyfin/movies";
|
||||
options = [ "bind" ];
|
||||
};
|
||||
"/export/music" = {
|
||||
device = "/home/xqtc/jellyfin/music";
|
||||
options = [ "bind" ];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
systemd.mounts."frotting" = {
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue