From fed25f02d85b14733c1d0ddaf86b04cf0d349803 Mon Sep 17 00:00:00 2001
From: clerie <git@clerie.de>
Date: Thu, 20 Mar 2025 19:55:17 +0100
Subject: [PATCH] profiles/wg-clerie: Don't let NetworkManager touch the VPN
 interface

---
 profiles/wg-clerie/default.nix | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/profiles/wg-clerie/default.nix b/profiles/wg-clerie/default.nix
index 2bbd26a..9ae527e 100644
--- a/profiles/wg-clerie/default.nix
+++ b/profiles/wg-clerie/default.nix
@@ -47,6 +47,10 @@ in
       };
     });
 
+    networking.networkmanager.unmanaged = [
+      "interface-name:wg-clerie"
+    ];
+
     systemd.network.netdevs."10-wg-clerie" = {
       netdevConfig = {
         Kind = "wireguard";