1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-24 20:19:45 +01:00
home-manager/tests/modules/services/mpd-mpris/configuration-with-password.nix

21 lines
384 B
Nix
Raw Normal View History

2022-12-27 18:15:51 +01:00
{ ... }:
{
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}
'';
}