nixos/mopidy: restart the systemd service on failure

This ensures Mopidy is running, even after crashes.
This commit is contained in:
Jordan Williams 2024-11-19 06:29:08 -06:00
parent c0bdabf2fe
commit 90dfafee35
No known key found for this signature in database
GPG Key ID: 9FB42B0E7F657D8C

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