mirror of
https://github.com/nix-community/home-manager
synced 2024-12-26 19:59:47 +01:00
23 lines
452 B
Nix
23 lines
452 B
Nix
|
{ ... }:
|
||
|
|
||
|
{
|
||
|
services.mpdris2 = {
|
||
|
enable = true;
|
||
|
mpd = {
|
||
|
host = "somehost";
|
||
|
port = 42;
|
||
|
password = "foo";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
test.stubs.mpdris2 = { };
|
||
|
|
||
|
nmt.script = ''
|
||
|
serviceFile=home-files/.config/systemd/user/mpdris2.service
|
||
|
assertFileContent "$serviceFile" ${./basic-configuration.service}
|
||
|
|
||
|
configFile=home-files/.config/mpDris2/mpDris2.conf
|
||
|
assertFileContent "$configFile" ${./with-password.config}
|
||
|
'';
|
||
|
}
|