[ns1] start wireguard on ns1
Hydra callback / on_pr (push) Skipped
Hydra callback / on_push (push) Skipped
Check flake syntax / flake-check (push) Failing after 1m50s

also add fallback dns to all vpn clients
This commit is contained in:
2026-09-14 15:59:16 +02:00
parent 48387f85ea
commit 3635e27a5a
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ in
mtu = 1340; #seems to be necessary to proxypass nginx traffic through vpn
address = [ "${myPeer.address}/24" ];
autostart = cfg.autostart;
dns = [peers.ns1.address];
dns = [peers.ns1.address "1.1.1.1"];
listenPort = mkIf (myPeer.role == "server") myPeer.listenPort;
# This allows the wireguard server to route your traffic to the internet and hence be like a VPN
+9
View File
@@ -17,6 +17,7 @@ in
../modules/sshd.nix
../modules/minimal_tools.nix
../modules/autoupdate.nix
inputs.self.nixosModules.malobeo.vpn
];
networking.firewall = {
@@ -25,6 +26,14 @@ in
allowedUDPPorts = [ 53 ];
};
sops.defaultSopsFile = ./secrets.yaml;
sops.secrets.wg_private = {};
services.malobeo.vpn = {
enable = true;
name = "ns1";
privateKeyFile = config.sops.secrets.wg_private.path;
};
services.bind = {
enable = true;
forwarders = [