mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-15 21:41:09 +01:00
mopidy: restart service on config changes
Also extend basic configuration test a bit to verify the restart trigger.
This commit is contained in:
parent
4d8d8c385e
commit
a9953635d7
2 changed files with 24 additions and 1 deletions
|
|
@ -126,6 +126,8 @@ in {
|
|||
Description = "mopidy music player daemon";
|
||||
Documentation = [ "https://mopidy.com/" ];
|
||||
After = [ "network.target" "sound.target" ];
|
||||
X-Restart-Triggers = mkIf (cfg.settings != { })
|
||||
[ "${config.xdg.configFile."mopidy/mopidy.conf".source}" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue