This commit is contained in:
2025-11-18 13:06:31 -06:00
parent ff550b960e
commit 10c3898b0b
7 changed files with 79 additions and 159 deletions

View File

@@ -59,7 +59,7 @@
}
}
*.ycombinator.com {
news.ycombinator.com {
template IN A {
answer "{{ .Name }} 0 IN A 127.0.0.1"
}
@@ -70,6 +70,18 @@
answer "{{ .Name }} 0 IN A 127.0.0.1"
}
}
4chan.org {
template IN A {
answer "{{ .Name }} 0 IN A 127.0.0.1"
}
}
*.4chan.org {
template IN A {
answer "{{ .Name }} 0 IN A 127.0.0.1"
}
}
'';
};
}

View File

@@ -32,7 +32,10 @@
};
};
swapDevices = [ ];
swapDevices = [{
device = "/swap";
size = (8 * 1024);
}];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";

View File

@@ -2,8 +2,8 @@
networking = {
hostName = "eve-psr-nix0";
firewall = {
allowedTCPPorts = [ 22 80 443 5000 23231 23232 23233 20443 ];
allowedUDPPorts = [ 53 51820 config.services.tailscale.port 20443 ];
allowedTCPPorts = [ 22 80 443 4242 5000 23231 23232 23233 20443 ];
allowedUDPPorts = [ 53 4242 51820 config.services.tailscale.port 20443 ];
extraCommands = ''
iptables -t nat -A POSTROUTING -s 100.64.0.0/10 -o enp1s0 -j MASQUERADE
'';