dot

vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks

592b484

Install nm-connection-editor without nm-applet's autostart

By Gustaf Granström

networkmanagerapplet in home.packages brought its XDG autostart entry
along, which uwsm would run at login and put nm-applet back in the tray.
Link only nm-connection-editor (and its desktop entry) instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

1 file changed +9 −1

@@ -19,6 +19,14 @@
1919 text = builtins.readFile ../../tools/nixos-update;
2020 };
2121
22+ # The Network tile's settings window, on its own: the networkmanagerapplet
23+ # package also has an autostart entry that would bring nm-applet back to the tray.
24+ nm-connection-editor = pkgs.runCommand "nm-connection-editor" { } ''
25+ mkdir -p $out/bin $out/share/applications
26+ ln -s ${pkgs.networkmanagerapplet}/bin/nm-connection-editor $out/bin/
27+ ln -s ${pkgs.networkmanagerapplet}/share/applications/nm-connection-editor.desktop $out/share/applications/
28+ '';
29+
2230 # Philly's webview (WebKitGTK) closes at once on the NVIDIA driver under
2331 # Wayland, with "Error 71 (Protocol error) dispatching to Wayland display",
2432 # unless its DMA-BUF renderer is off. Set on the program itself, so it holds
@@ -53,7 +61,7 @@
5361 # Called by the control centre and tray scripts.
5462 pulseaudio # pactl
5563 bluez # bluetoothctl
56- networkmanagerapplet # nm-connection-editor, the Network tile's settings
64+ nm-connection-editor
5765 nixos-update
5866 solaar # mouse battery fallback (mouse-battery.sh)
5967