1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 20:29:47 +01:00
home-manager/tests/modules/programs/beets/mpdstats.nix

34 lines
687 B
Nix
Raw Normal View History

2023-07-08 10:12:35 +02:00
{ config, ... }:
{
2023-07-08 10:12:35 +02:00
home.stateVersion = "23.05";
2023-07-08 10:12:35 +02:00
services.mpd = {
enable = true;
musicDirectory = "/my/music/dir";
network.port = 4242;
};
2023-07-08 10:12:35 +02:00
programs.beets = {
enable = true;
mpdIntegration.enableStats = true;
};
2024-02-03 19:39:45 +01:00
test.stubs = {
beets = { };
mpd = { };
};
2023-07-08 10:12:35 +02:00
nmt.script = ''
assertFileExists home-files/.config/beets/config.yaml
assertFileContent \
home-files/.config/beets/config.yaml \
${./mpdstats-expected.yaml}
2023-07-08 10:12:35 +02:00
assertFileExists home-files/.config/systemd/user/beets-mpdstats.service
assertFileContent \
home-files/.config/systemd/user/beets-mpdstats.service \
${./mpdstats-expected.service}
'';
}