configurations for my servers and desktops
nix nixos flake dots dotfiles

fix: wait wouldn't tailscale exit node work for this

im stupid

-68
-2
hosts/bluepill-proxy/default.nix
··· 1 1 {...}: { 2 2 imports = [ 3 3 ./hardware.nix 4 - ./services/caddy.nix 5 - ./services/nftables.nix 6 4 ./services/ssh.nix 7 5 ./services/tailscale.nix 8 6 ];
-26
hosts/bluepill-proxy/services/caddy.nix
··· 1 - {...}: { 2 - networking.firewall.allowedTCPPorts = [80 443]; 3 - 4 - services.caddy = { 5 - enable = true; 6 - virtualHosts = { 7 - "navidrome.devins.page" = { 8 - extraConfig = '' 9 - reverse_proxy http://100.108.47.83:4533 10 - ''; 11 - }; 12 - 13 - "jellyfin.devins.page" = { 14 - extraConfig = '' 15 - reverse_proxy http://100.108.47.83:8096 16 - ''; 17 - }; 18 - 19 - "slskd.devins.page" = { 20 - extraConfig = '' 21 - reverse_proxy http://100.108.47.83:5030 22 - ''; 23 - }; 24 - }; 25 - }; 26 - }
-40
hosts/bluepill-proxy/services/nftables.nix
··· 1 - {...}: { 2 - boot.kernel.sysctl = { 3 - "net.ipv4.ip_forward" = 1; 4 - "net.ipv6.conf.all.forwarding" = 1; 5 - }; 6 - 7 - networking.firewall = { 8 - enable = true; 9 - allowedTCPPorts = [22 25565]; 10 - allowedUDPPorts = [25565 24454 19132]; 11 - }; 12 - 13 - networking.nat = { 14 - enable = true; 15 - externalInterface = "tailscale0"; 16 - externalIP = "100.108.47.83"; 17 - forwardPorts = [ 18 - { 19 - sourcePort = 25565; 20 - proto = "tcp"; 21 - destination = "100.109.134.42:25565"; 22 - } 23 - { 24 - sourcePort = 25565; 25 - proto = "udp"; 26 - destination = "100.109.134.42:25565"; 27 - } 28 - { 29 - sourcePort = 24454; 30 - proto = "udp"; 31 - destination = "100.109.134.42:24454"; 32 - } 33 - { 34 - sourcePort = 19132; 35 - proto = "udp"; 36 - destination = "100.109.134.42:19132"; 37 - } 38 - ]; 39 - }; 40 - }