nixos/greenclip: restart daemon if it exits
This commit is contained in:
parent
62f7c1ff24
commit
b87790536d
|
@ -18,7 +18,10 @@ in {
|
|||
description = "greenclip daemon";
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
after = [ "graphical-session.target" ];
|
||||
serviceConfig.ExecStart = "${cfg.package}/bin/greenclip daemon";
|
||||
serviceConfig = {
|
||||
ExecStart = "${cfg.package}/bin/greenclip daemon";
|
||||
Restart = "always";
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
|
|
Loading…
Reference in New Issue