nixos/mopidy: restart the systemd service on failure (#357250)

This commit is contained in:
Felix Bühler 2024-11-27 20:24:23 +01:00 committed by GitHub
commit 377b520bab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,6 +77,7 @@ in {
description = "mopidy music player daemon";
serviceConfig = {
ExecStart = "${mopidyEnv}/bin/mopidy --config ${lib.concatStringsSep ":" ([mopidyConf] ++ cfg.extraConfigFiles)}";
Restart = "on-failure";
User = "mopidy";
};
};