| 29 Jun 2025 |
emily | or if the plugin even uses this helper | 15:45:11 |
hexa (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 (clat on linux when) | so yeah, still need to check if this makes it work | 15:48:11 |
hexa (clat on linux when) | not super fond of the pname lookup, but 🤷 | 15:48:33 |
hexa (clat on linux when) | it does allow some more cleanup though, because the module does some stuff unconditionally for plugins | 15:54:22 |
hexa (clat on linux when) | like create /var/lib/misc for dnsmasq leases!? | 15:54:44 |
hexa (clat on linux when) | though that is probably unrelated to plugins | 15:54:59 |
hexa (clat on linux when) | https://github.com/nixos/nixpkgs/commit/f4de446573887d6241bbd64ad3e7a67c336a4aee | 15:56:10 |
hexa (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 |
emily | does it really use dnsmasq out of the box? | 15:58:08 |
hexa (clat on linux when) | without openconnect i'm down to +9 MB | 15:58:30 |
hexa (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 (clat on linux when) | probably when you set up an AP | 15:58:41 |
hexa (clat on linux when) | or some form of connection sharing | 15:58:46 |
hexa (clat on linux when) |  Download image.png | 16:02:49 |
emily | seems totally fine. ModemManager should be free since it's already a NM dep | 16:03:00 |
hexa (clat on linux when) | have an option to put a thing in a list | 16:03:02 |
emily | time to install over 5G | 16:03:05 |
hexa (clat on linux when) | arch makes modemmanager an optional dep | 16:03:15 |
hexa (clat on linux when) | I think we should too, but it probably doesn't make too big a dent either way | 16:03:35 |
emily | not sure it's worth since it's so small | 16:03:40 |
emily | why distinguish WiFi and WWAN unless the latter actually pulls in something big? | 16:03:48 |
hexa (clat on linux when) | everyone and their dog has WLAN | 16:04:03 |
hexa (clat on linux when) | cellular networking usually comes with traffic caps | 16:04:17 |
hexa (clat on linux when) | * everyone and their dog has WLAN and it is mostly free | 16:04:28 |
emily | eh | 16:05:00 |
emily | you can get unlimited 5G here for cheaper than Americans pay for data capped fibre | 16:05:08 |
hexa (clat on linux when) |  Download image.png | 16:05:37 |
hexa (clat on linux when) | t-mobile in DE | 16:05:39 |
emily | wow | 16:05:59 |