From 337c4cc7b0fbddd8d3b8dbd332067fd72cf18e2a Mon Sep 17 00:00:00 2001 From: Bouke van der Bijl Date: Sat, 18 Jan 2025 09:06:03 +0100 Subject: [PATCH] nixos/mediamtx: restart service on failure (#374588) Co-authored-by: Masum Reza <50095635+JohnRTitor@users.noreply.github.com> --- nixos/modules/services/video/mediamtx.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/video/mediamtx.nix b/nixos/modules/services/video/mediamtx.nix index 054e30b75e5a..bb5ba895e01e 100644 --- a/nixos/modules/services/video/mediamtx.nix +++ b/nixos/modules/services/video/mediamtx.nix @@ -66,6 +66,7 @@ in Group = "mediamtx"; SupplementaryGroups = lib.mkIf cfg.allowVideoAccess "video"; ExecStart = "${cfg.package}/bin/mediamtx /etc/mediamtx.yaml"; + Restart = "on-failure"; }; }; };