summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-01-22 14:12:30 -0600
committerMarc Coquand <marc@mccd.space>2024-01-22 14:13:07 -0600
commitc7bffab8fa6d464d6ce090a89c365e65ef620055 (patch)
treea884d9584995d94bcd0e06d9d435c00f03e7db7e
parent097b98a24a199c9b1f100696fa2de4b689476a57 (diff)
downloadnixos-c7bffab8fa6d464d6ce090a89c365e65ef620055.tar.gz
nixos-c7bffab8fa6d464d6ce090a89c365e65ef620055.tar.bz2
nixos-c7bffab8fa6d464d6ce090a89c365e65ef620055.zip
Auto restart ann on failure
Diffstat (limited to '')
-rw-r--r--configuration.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/configuration.nix b/configuration.nix
index e917d29..dc3e7e6 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -12,6 +12,10 @@
${inputs.ann.apps.${pkgs.system}."migrate-up".program}
exec ${inputs.ann.apps.${pkgs.system}.ann.default.program}
'';
+ serviceConfig = {
+ Restart = "on-failure";
+ RestartSec = 1;
+ };
wantedBy = [ "multi-user.target" ];
};