From 2dd6b04b3af96f07f664801cfba9a77e38f11a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 9 Oct 2023 05:52:49 +0300 Subject: [PATCH] hm: add tray.target --- modules/profiles/desktop/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/profiles/desktop/default.nix b/modules/profiles/desktop/default.nix index a4d2a41..a6a8a35 100644 --- a/modules/profiles/desktop/default.nix +++ b/modules/profiles/desktop/default.nix @@ -210,6 +210,14 @@ lockCmd = ''${pkgs.bash}/bin/bash -c "${pkgs.coreutils}/bin/sleep 0.2; ${pkgs.xorg.xset}/bin/xset dpms force off; /run/wrappers/bin/slock"''; }; + # https://github.com/nix-community/home-manager/issues/2064 + systemd.user.targets.tray = { + Unit = { + Description = "Home Manager System Tray"; + Requires = ["graphical-session-pre.target"]; + }; + }; + # thanks K900 gtk = { enable = true;