mirror of
https://github.com/nix-community/home-manager
synced 2024-11-13 06:39:44 +01:00
listenbrainz-mpd: use sdnotify when possible
The ability for listenbrainz-mpd to notify systemd when it's ready was added in 2.3.2: https://codeberg.org/elomatreb/listenbrainz-mpd/releases/tag/v2.3.2
This commit is contained in:
parent
28215db303
commit
1fd55da2a1
1 changed files with 4 additions and 0 deletions
|
@ -40,6 +40,10 @@ in {
|
|||
ExecStart = "${cfg.package}/bin/listenbrainz-mpd";
|
||||
Restart = "always";
|
||||
RestartSec = 5;
|
||||
Type = if lib.versionAtLeast cfg.package.version "2.3.2" then
|
||||
"notify"
|
||||
else
|
||||
"simple";
|
||||
};
|
||||
Install.WantedBy = [ "default.target" ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue