diff --git a/nixos/modules/services/desktop-managers/cosmic.nix b/nixos/modules/services/desktop-managers/cosmic.nix index 342e1d7e3d5a..4a3e6982b933 100644 --- a/nixos/modules/services/desktop-managers/cosmic.nix +++ b/nixos/modules/services/desktop-managers/cosmic.nix @@ -89,10 +89,13 @@ in cosmic-screenshot cosmic-term cosmic-wallpapers + glib hicolor-icon-theme + networkmanagerapplet playerctl pop-icon-theme pop-launcher + pulseaudio xdg-user-dirs ] ++ lib.optionals config.services.flatpak.enable [ diff --git a/pkgs/by-name/ne/networkmanagerapplet/package.nix b/pkgs/by-name/ne/networkmanagerapplet/package.nix index 252a54c71b3e..98de9077f661 100644 --- a/pkgs/by-name/ne/networkmanagerapplet/package.nix +++ b/pkgs/by-name/ne/networkmanagerapplet/package.nix @@ -73,6 +73,10 @@ stdenv.mkDerivation rec { postPatch = '' chmod +x meson_post_install.py # patchShebangs requires executable file patchShebangs meson_post_install.py + + # Prevent applet from autostarting in COSMIC, which has its own built-in network applet + substituteInPlace nm-applet.desktop.in \ + --replace-fail "NotShowIn=KDE;GNOME;" "NotShowIn=KDE;GNOME;COSMIC;" ''; passthru = {