firewall changes

This commit is contained in:
Nickiel12 2024-01-11 18:42:13 -08:00
parent 4ce4b54b4f
commit be8777af35
2 changed files with 4 additions and 3 deletions

View file

@ -11,7 +11,8 @@ in
# ${pkgs.nftables}/bin/nft -f - <<EOF # ${pkgs.nftables}/bin/nft -f - <<EOF
# EOF # EOF
${pkgs.nftables}/bin/nft insert rule filter nixos-fw ip saddr 100.64.0.0-100.64.255.255 iifname "enp2s0" counter # Already handled by tailscale in ts-input
# ${pkgs.nftables}/bin/nft insert rule filter nixos-fw ip saddr 100.64.0.0-100.64.255.255 iifname "enp2s0" counter jump nixos-fw-log-refuse
''; '';
} };
} }

View file

@ -9,7 +9,7 @@ in
{ {
networking.firewall = { networking.firewall = {
allowedTCPPorts = [3001]; allowedTCPPorts = [3001];
} };
system.activationScripts.copyStuff = "cp -r ${../../../rsrcs/giteaCustomDir}/. /Aurora/Forgejo/custom"; system.activationScripts.copyStuff = "cp -r ${../../../rsrcs/giteaCustomDir}/. /Aurora/Forgejo/custom";
system.activationScripts.copyTheme = "mkdir -p /Aurora/Forgejo/custom/public/assets/css && cp ${palenight}/dist/theme-palenight.css /Aurora/Forgejo/custom/public/assets/css/"; system.activationScripts.copyTheme = "mkdir -p /Aurora/Forgejo/custom/public/assets/css && cp ${palenight}/dist/theme-palenight.css /Aurora/Forgejo/custom/public/assets/css/";