From 8f9eeb392be1828f9f3b9fe5b78a4e6e6ef83a5d Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 13 Aug 2021 02:29:06 -0600 Subject: [PATCH] [NixOS] Add service for notifications-tray-icon --- nixos/home-manager.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nixos/home-manager.nix b/nixos/home-manager.nix index 6c0fb311..821a6e4d 100644 --- a/nixos/home-manager.nix +++ b/nixos/home-manager.nix @@ -106,6 +106,21 @@ }; }; + systemd.user.services.notifications-tray-icon = { + Unit = { + Description = "Notifications tray icon"; + After = [ "graphical-session-pre.target" "tray.target" ]; + PartOf = [ "graphical-session.target" ]; + }; + + Install = { WantedBy = [ "graphical-session.target" ]; }; + + Service = { + ExecStart = "${pkgs.haskellPackages.notifications-tray-icon}/bin/notifications-tray-icon --github-token-pass github-token"; + Restart = "always"; + RestartSec = 3; + }; + }; systemd.user.services.picom = { Unit = {