nixos/greenclip: restart daemon if it exits

This commit is contained in:
Preston Hunt 2024-04-12 08:19:41 -07:00 committed by tomf
parent 62f7c1ff24
commit b87790536d
1 changed files with 4 additions and 1 deletions

View File

@ -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 ];