summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/router.nix16
1 files changed, 7 insertions, 9 deletions
diff --git a/modules/router.nix b/modules/router.nix
index 0832005..721a0d1 100644
--- a/modules/router.nix
+++ b/modules/router.nix
@@ -286,6 +286,7 @@ in {
};
orbekk.mullvad.enable = true;
+ networking.wireguard.enable = true;
networking.wireguard.interfaces.mullvad.interfaceNamespace = "router";
systemd.services."container@router" = {
@@ -318,15 +319,12 @@ in {
additionalCapabilities = ["CAP_NET_ADMIN"];
};
- networking.wireguard = {
- enable = true;
- interfaces.wg-vpn = {
- socketNamespace = "router";
- interfaceNamespace = "router";
- ips = [ "${vpnPrefix}::d"/128 ];
- privateKeyFile = config.age.secrets.dragon-wireguard-key.path;
- listenPort = vpnPort;
- };
+ networking.wireguard.interfaces.wg-vpn = {
+ socketNamespace = "router";
+ interfaceNamespace = "router";
+ ips = [ "${vpnPrefix}::d"/128 ];
+ privateKeyFile = config.age.secrets.dragon-wireguard-key.path;
+ listenPort = vpnPort;
};
services.ddclient = {