diff options
author | Marc Coquand <marc@mccd.space> | 2024-01-22 14:12:30 -0600 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-01-22 14:13:07 -0600 |
commit | c7bffab8fa6d464d6ce090a89c365e65ef620055 (patch) | |
tree | a884d9584995d94bcd0e06d9d435c00f03e7db7e /configuration.nix | |
parent | 097b98a24a199c9b1f100696fa2de4b689476a57 (diff) | |
download | nixos-c7bffab8fa6d464d6ce090a89c365e65ef620055.tar.gz nixos-c7bffab8fa6d464d6ce090a89c365e65ef620055.tar.bz2 nixos-c7bffab8fa6d464d6ce090a89c365e65ef620055.zip |
Auto restart ann on failure
Diffstat (limited to 'configuration.nix')
-rw-r--r-- | configuration.nix | 4 |
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" ]; }; |