depot/third_party/home-manager/tests/modules/services/mpd-mpris/configuration-with-password.nix
Default email 75fa0ae5af Project import generated by Copybara.
GitOrigin-RevId: c3ab5ea047e6dc73df530948f7367455749d8906
2023-08-08 12:19:01 +02:00

20 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}
'';
}