1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00
home-manager/tests/modules/services/mpdscribble/basic-configuration.nix
2025-05-07 10:03:21 -05:00

28 lines
575 B
Nix

{
...
}:
{
services.mpdscribble = {
enable = true;
endpoints = {
"libre.fm" = {
username = "musicfan1992";
passwordFile = toString ./password-file;
};
"https://music.com/" = {
username = "musicHATER1000";
passwordFile = toString ./password-file;
};
};
};
home.stateVersion = "22.11";
test.stubs.mpd = { };
nmt.script = ''
serviceFile=$(normalizeStorePaths home-files/.config/systemd/user/mpdscribble.service)
assertFileContent "$serviceFile" ${./basic-configuration.service}
'';
}