mirror of
https://github.com/nix-community/home-manager
synced 2024-11-19 01:29:46 +01:00
taffybar: Avoid restarting too quickly (#4316)
This commit is contained in:
parent
0a014a729c
commit
903e06d734
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,8 @@ in {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Taffybar desktop bar";
|
Description = "Taffybar desktop bar";
|
||||||
PartOf = [ "tray.target" ];
|
PartOf = [ "tray.target" ];
|
||||||
|
StartLimitBurst = 5;
|
||||||
|
StartLimitIntervalSec = 10;
|
||||||
};
|
};
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
|
@ -39,6 +41,7 @@ in {
|
||||||
BusName = "org.taffybar.Bar";
|
BusName = "org.taffybar.Bar";
|
||||||
ExecStart = "${cfg.package}/bin/taffybar";
|
ExecStart = "${cfg.package}/bin/taffybar";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
RestartSec = "2s";
|
||||||
};
|
};
|
||||||
|
|
||||||
Install = { WantedBy = [ "tray.target" ]; };
|
Install = { WantedBy = [ "tray.target" ]; };
|
||||||
|
|
Loading…
Reference in a new issue