Skip to content

Commit

Permalink
nixos/mopidy: restart the systemd service on failure
Browse files Browse the repository at this point in the history
This ensures Mopidy is running, even after crashes.
  • Loading branch information
jwillikers committed Nov 26, 2024
1 parent c0bdabf commit 90dfafe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/services/audio/mopidy.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};
};
Expand Down

0 comments on commit 90dfafe

Please sign in to comment.