1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-18 17:19:45 +01:00

taffybar: Avoid restarting too quickly (#4316)

This commit is contained in:
Ivan Malison 2023-08-06 03:00:44 -06:00 committed by GitHub
parent 0a014a729c
commit 903e06d734
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,6 +32,8 @@ in {
Unit = {
Description = "Taffybar desktop bar";
PartOf = [ "tray.target" ];
StartLimitBurst = 5;
StartLimitIntervalSec = 10;
};
Service = {
@ -39,6 +41,7 @@ in {
BusName = "org.taffybar.Bar";
ExecStart = "${cfg.package}/bin/taffybar";
Restart = "on-failure";
RestartSec = "2s";
};
Install = { WantedBy = [ "tray.target" ]; };