System Gen167 @ 2025-04-24-00:03:37

This commit is contained in:
Jonas Röger 2025-04-24 00:03:38 +02:00
parent 6af180de05
commit ce6f87d7ab
2 changed files with 4 additions and 4 deletions

View File

@ -26,11 +26,11 @@ in {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
networking.firewall.allowedUDPPorts = [cfg.port]; networking.firewall.allowedUDPPorts = [cfg.port];
networking.wireguard.interfaces.wg0 = { networking.wg-quick.interfaces.wg0 = {
inherit (peers.jonas) ips; inherit (peers.jonas) address;
inherit (cfg) privateKeyFile; inherit (cfg) privateKeyFile;
listenPort = cfg.port; listenPort = cfg.port;
autostart = cfg.autoConnect;
peers = [ peers = [
peers.harbor peers.harbor
]; ];

View File

@ -14,7 +14,7 @@
jonas = { jonas = {
publicKey = "oPMapC1S3TPe+/YQulG0AsVsOu+MzZY7huvAAXVJEnM="; publicKey = "oPMapC1S3TPe+/YQulG0AsVsOu+MzZY7huvAAXVJEnM=";
ips = ["10.10.10.2/24"]; address = ["10.10.10.2/24"];
allowedIPs = ["10.10.10.2/32"]; allowedIPs = ["10.10.10.2/32"];
}; };
} }