1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-10 21:29:48 +01:00

xsession: allow xplugd to restart on failure

This should let it recover a bit better from transient errors.
This commit is contained in:
ckie 2023-10-17 20:34:00 +03:00 committed by Mikilio
parent 2ead9ee576
commit 4e7e6e2538
No known key found for this signature in database
GPG key ID: 5B2F1A890CF33F3F

View file

@ -139,6 +139,7 @@ in {
Service = { Service = {
Type = "forking"; Type = "forking";
Restart = "on-failure";
ExecStart = let ExecStart = let
script = pkgs.writeShellScript "xplugrc" '' script = pkgs.writeShellScript "xplugrc" ''
case "$1,$3" in case "$1,$3" in