diff options
author | Preston Hunt <me@prestonhunt.com> | 2024-04-12 08:19:41 -0700 |
---|---|---|
committer | tomf <tom@tom-fitzhenry.me.uk> | 2024-04-21 23:58:10 +1000 |
commit | b87790536d7151d6fef61bc9362bafb0ce8b1445 (patch) | |
tree | 54497ea268d56c1fdc56955dc9d63285d53ca39c /nixos/modules/services/misc | |
parent | 62f7c1ff246c42a8a4277bb1bea12529f357e2bb (diff) |
nixos/greenclip: restart daemon if it exits
Diffstat (limited to 'nixos/modules/services/misc')
-rw-r--r-- | nixos/modules/services/misc/greenclip.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/greenclip.nix b/nixos/modules/services/misc/greenclip.nix index 9d1483a5a047..d92cd1854877 100644 --- a/nixos/modules/services/misc/greenclip.nix +++ b/nixos/modules/services/misc/greenclip.nix @@ -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 ]; |