1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-04 18:29:45 +01:00
home-manager/tests/modules/services/mpdris2/with-password.nix

25 lines
508 B
Nix
Raw Normal View History

2022-05-25 18:31:08 +02:00
{ ... }:
{
services.mpdris2 = {
enable = true;
mpd = {
host = "somehost";
port = 42;
password = "foo";
};
};
services.mpd.musicDirectory = "/home/hm-user/music";
2022-05-25 18:31:08 +02:00
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}
'';
}