nixos/invidious: add automaticRestart option

This commit is contained in:
Gaetan Lepage 2023-06-05 08:32:17 +02:00
parent eafbb465a9
commit 2e582d4edc

View File

@ -41,6 +41,12 @@ let
RestrictNamespaces = true;
SystemCallArchitectures = "native";
SystemCallFilter = [ "@system-service" "~@privileged" "~@resources" ];
# Because of various issues Invidious must be restarted often, at least once a day, ideally
# every hour.
# This option enables the automatic restarting of the Invidious instance.
Restart = lib.mkDefault "always";
RuntimeMaxSec = lib.mkDefault "1h";
};
};