2023-07-08 08:12:35 +00:00
|
|
|
{ config, ... }:
|
2023-05-11 12:03:54 +00:00
|
|
|
|
|
|
|
{
|
2023-07-08 08:12:35 +00:00
|
|
|
home.stateVersion = "23.05";
|
2023-05-11 12:03:54 +00:00
|
|
|
|
2023-07-08 08:12:35 +00:00
|
|
|
programs.beets = {
|
|
|
|
enable = true;
|
|
|
|
package = config.lib.test.mkStubPackage { outPath = "@beets@"; };
|
|
|
|
mpdIntegration = {
|
|
|
|
enableStats = true;
|
|
|
|
host = "10.0.0.42";
|
|
|
|
port = 6601;
|
2023-05-11 12:03:54 +00:00
|
|
|
};
|
2023-07-08 08:12:35 +00:00
|
|
|
};
|
2023-05-11 12:03:54 +00:00
|
|
|
|
2023-07-08 08:12:35 +00:00
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/beets/config.yaml
|
|
|
|
assertFileContent \
|
|
|
|
home-files/.config/beets/config.yaml \
|
|
|
|
${./mpdstats-external-expected.yaml}
|
2023-05-11 12:03:54 +00:00
|
|
|
|
2023-07-08 08:12:35 +00:00
|
|
|
assertFileExists home-files/.config/systemd/user/beets-mpdstats.service
|
|
|
|
assertFileContent \
|
|
|
|
home-files/.config/systemd/user/beets-mpdstats.service \
|
|
|
|
${./mpdstats-external-expected.service}
|
|
|
|
'';
|
2023-05-11 12:03:54 +00:00
|
|
|
}
|