[NixOS] Add service for notifications-tray-icon

This commit is contained in:
Ivan Malison 2021-08-13 02:29:06 -06:00
parent d0474a4d35
commit 8f9eeb392b
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -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 = { systemd.user.services.picom = {
Unit = { Unit = {