This commit is contained in:
nora 2024-08-01 15:20:21 +02:00
parent e12757d1f0
commit 633f26d24d
17 changed files with 115 additions and 35 deletions

View file

@ -23,6 +23,7 @@
services.openssh = {
enable = true;
openFirewall = true;
banner = "meoooooow!! 😼 :3\n";
settings = {
PasswordAuthentication = false;

View file

@ -2,8 +2,8 @@
# get the package for the debugging tools
environment.systemPackages = with pkgs; [ knot-dns ];
networking.firewall.allowedUDPPortRanges = [
{ from = 53; to = 53; }
networking.firewall.allowedUDPPorts = [
53
];
nixpkgs.overlays = [

View file

@ -1,6 +1,5 @@
{ pkgs, config, ... }: {
networking.firewall.allowedTCPPorts = [
22
443
];

View file

@ -19,6 +19,10 @@ in
in
builtins.listToAttrs wgHostEntries;
networking.firewall.allowedUDPPorts = [
listenPort
];
age.secrets.wg_private.file = ../../secrets/wg_private_${name}.age;
networking.wg-quick.interfaces = {
wg0 = {
@ -33,6 +37,8 @@ in
inherit (peerConfig) publicKey;
endpoint = "${peer}.infra.noratrieb.dev:${toString listenPort}";
allowedIPs = [ "${peerConfig.privateIP}/32" ];
# sometimes there's some weirdness....??
persistentKeepalive = 25;
}
)
wgSettings.peers;