!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

882 Members
Declaratively manage your switching, routing, wireless, tunneling and more. | Don't rely on `networking.*` for interface and routing setup, use systemd-networkd, ifstate or NetworkManager instead. | Set `SYSTEMD_LOG_LEVEL=debug` to debug networking issues with networkd | No bad nft puns, please. | Room recommendations: #sysops:nixos.org251 Servers

Load older messages


SenderMessageTime
29 Jun 2025
@emilazy:matrix.orgemilyor if the plugin even uses this helper15:45:11
@hexa:lossy.networkhexa (clat on linux when)
diff --git a/nixos/modules/services/networking/networkmanager.nix b/nixos/modules/services/networking/networkmanager.nix
index 803cc741ce15..66360915c724 100644
--- a/nixos/modules/services/networking/networkmanager.nix
+++ b/nixos/modules/services/networking/networkmanager.nix
@@ -15,6 +15,8 @@ let
 
   enableIwd = cfg.wifi.backend == "iwd";
 
+  withPlugin = name: builtins.elem name (map (plugin: plugin.pname) cfg.plugins);
+
   configAttrs = lib.recursiveUpdate {
     main = {
       plugins = "keyfile";
@@ -716,5 +718,9 @@ in
       ++ optional (cfg.dns == "dnsmasq") pkgs.dnsmasq;
 
     services.udev.packages = packages;
+
+    systemd.services.NetworkManager.path = lib.optionals (withPlugin "NetworkManager-openconnect") [
+      openconnect
+    ];
   };
 }
15:47:52
@hexa:lossy.networkhexa (clat on linux when)so yeah, still need to check if this makes it work15:48:11
@hexa:lossy.networkhexa (clat on linux when)not super fond of the pname lookup, but 🤷15:48:33
@hexa:lossy.networkhexa (clat on linux when)it does allow some more cleanup though, because the module does some stuff unconditionally for plugins15:54:22
@hexa:lossy.networkhexa (clat on linux when)like create /var/lib/misc for dnsmasq leases!?15:54:44
@hexa:lossy.networkhexa (clat on linux when)though that is probably unrelated to plugins15:54:59
@hexa:lossy.networkhexa (clat on linux when)https://github.com/nixos/nixpkgs/commit/f4de446573887d6241bbd64ad3e7a67c336a4aee15:56:10
@hexa:lossy.networkhexa (clat on linux when)and sure enough they do use that path https://github.com/search?q=repo%3Aimp%2Fdnsmasq%20%2Fvar%2Flib%2Fmisc&type=code 15:57:01
@emilazy:matrix.orgemilydoes it really use dnsmasq out of the box?15:58:08
@hexa:lossy.networkhexa (clat on linux when)without openconnect i'm down to +9 MB15:58:30
@hexa:lossy.networkhexa (clat on linux when)we probably won't get nm for free, but it will be super cheap for a lot of UX gain 15:58:36
@hexa:lossy.networkhexa (clat on linux when)probably when you set up an AP15:58:41
@hexa:lossy.networkhexa (clat on linux when)or some form of connection sharing15:58:46
@hexa:lossy.networkhexa (clat on linux when)image.png
Download image.png
16:02:49
@emilazy:matrix.orgemilyseems totally fine. ModemManager should be free since it's already a NM dep16:03:00
@hexa:lossy.networkhexa (clat on linux when)have an option to put a thing in a list16:03:02
@emilazy:matrix.orgemilytime to install over 5G16:03:05
@hexa:lossy.networkhexa (clat on linux when)arch makes modemmanager an optional dep16:03:15
@hexa:lossy.networkhexa (clat on linux when)I think we should too, but it probably doesn't make too big a dent either way16:03:35
@emilazy:matrix.orgemilynot sure it's worth since it's so small16:03:40
@emilazy:matrix.orgemilywhy distinguish WiFi and WWAN unless the latter actually pulls in something big?16:03:48
@hexa:lossy.networkhexa (clat on linux when)everyone and their dog has WLAN16:04:03
@hexa:lossy.networkhexa (clat on linux when)cellular networking usually comes with traffic caps16:04:17
@hexa:lossy.networkhexa (clat on linux when)* everyone and their dog has WLAN and it is mostly free16:04:28
@emilazy:matrix.orgemilyeh16:05:00
@emilazy:matrix.orgemilyyou can get unlimited 5G here for cheaper than Americans pay for data capped fibre16:05:08
@hexa:lossy.networkhexa (clat on linux when)image.png
Download image.png
16:05:37
@hexa:lossy.networkhexa (clat on linux when)t-mobile in DE16:05:39
@emilazy:matrix.orgemilywow16:05:59

Show newer messages


Back to Room ListRoom Version: 6