Anyone with Pantheon DE?

Hi, I’m a newbie here. I’m having a problem with the Patheon desktop environment. My configuration includes Flakes and Home Manager (NixOS 22.11). Pantheon works fine, but I can’t set the icons to appear in the top bar (tray icon). I can only see icons of native applications like Monitor. However, when I use other applications such as virt-manager etc., the icons are not displayed. Does anyone have a tip on the correct configuration? My pantheon.nix file contains the following:

  services.xserver.enable = true;

  # Enable the Pantheon Desktop Environment.
  services.xserver.displayManager.lightdm.enable = true;
  services.xserver.desktopManager.pantheon.enable = true;
  services.xserver.desktopManager.pantheon.extraWingpanelIndicators = with pkgs; [ wingpanel-indicator-ayatana ];
  services.xserver.desktopManager.pantheon.extraSwitchboardPlugs = [];

  # Configure keymap in X11
  services.xserver = {
    layout = "us";
    xkbVariant = "";
  };

  # Allow Pantheon Tweaks
  programs.pantheon-tweaks.enable = true;

  # Disable apps in Pantheon
  environment.pantheon.excludePackages = [ pkgs.pantheon.epiphany pkgs.pantheon.elementary-mail ];

  # App indicator
  environment.pathsToLink = [ "/libexec" ];
  environment.systemPackages = with pkgs; [ indicator-application-gtk3 ];

I used the following sources:

(Package requests: wingpanel indicator ayatana · Issue #144045 · NixOS/nixpkgs · GitHub contains some stupid mistakes and hopefully I just fixed them)

I sometimes use Pantheon but honestly I seldom use this wingpanel indicator.

You are all set if pgrep -f indicator-application-service prints something. You will need to add it as startup app otherwise, by using switchboard or systemd services.

I have the impression that this only supports StatusNotifier’s and not the XEmbed’s, things I confirmed it works are fcitx5 and slack but honestly I haven’t really looked into it.

There is GitHub - msmaldi/wingpanel-indicator-na-tray which should cover legacy apps, it is not in nixpkgs yet but hopefully would not be too hard to package.

(Btw I am looking for alternatives for wingpanel-indicator-ayatana since it is not maintained anymore)

1 Like

Thanks for your quick reply. I think I have everything set up correctly. pgrep will show a PID for this process. Since I’m not skilled in packaging, I’ll have to wait for another solution.
Thanks again.

Hi,

I am running Pantheon and have the Ayatana Indicator working. Here is my Pantheon configuration, and I also use Home Manager to configure Pantheon to my preferences.

1 Like

Hi, thanks for the tip, I will try your configuration. For me Ayatana Indicator works partially. Some apps it shows (monitor, nextcloud) and some not (virt-manager, rocketchat).

PS: your videos are great, thank you for doing this :+1: