default.nix (562B)
1 { config, lib, pkgs, ... }: 2 let 3 openTCP = dev: port: '' 4 ip46tables -A nixos-fw -i ${dev} -p tcp --dport ${toString port} -j nixos-fw-accept 5 ''; 6 ports = { 7 git = 9418; 8 gemini = 1965; 9 starbound = 21025; 10 terraria = 7777; 11 }; 12 in 13 { 14 services.openssh.gatewayPorts = "yes"; 15 16 networking.firewall.allowedTCPPorts = with ports; [ 22 443 80 70 12566 12788 5222 5269 3415 git gemini terraria ]; 17 18 networking.domain = "jb55.com"; 19 networking.search = [ "jb55.com" ]; 20 networking.extraHosts = '' 21 127.0.0.1 jb55.com 22 ::1 jb55.com 23 ''; 24 }