Skip to content

Commit

Permalink
nixos/greenclip: restart daemon if it exits
Browse files Browse the repository at this point in the history
  • Loading branch information
presto8 committed Apr 21, 2024
1 parent c069b1b commit 6f51d65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nixos/modules/services/misc/greenclip.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
Expand Down

0 comments on commit 6f51d65

Please sign in to comment.