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"; }; }; };