mirror of
https://github.com/nix-community/home-manager
synced 2024-11-13 22:59:44 +01:00
21 lines
384 B
Nix
21 lines
384 B
Nix
|
{ ... }:
|
||
|
|
||
|
{
|
||
|
services.mpd-mpris = {
|
||
|
enable = true;
|
||
|
mpd = {
|
||
|
network = "tcp";
|
||
|
host = "example.com";
|
||
|
port = 1234;
|
||
|
password = "my_password";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
test.stubs.mpd-mpris = { };
|
||
|
|
||
|
nmt.script = ''
|
||
|
serviceFile=home-files/.config/systemd/user/mpd-mpris.service
|
||
|
assertFileContent "$serviceFile" ${./configuration-with-password.service}
|
||
|
'';
|
||
|
}
|