mirror of
https://github.com/nix-community/home-manager
synced 2024-12-18 15:59:48 +01:00
622fa73725
Allow configuration of mpdstats and mpdupdate plugins for Beets using Home Manager. Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
29 lines
744 B
Nix
29 lines
744 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
config = {
|
|
home.stateVersion = "23.05";
|
|
|
|
programs.beets = {
|
|
enable = true;
|
|
package = config.lib.test.mkStubPackage { outPath = "@beets@"; };
|
|
mpdIntegration = {
|
|
enableStats = true;
|
|
host = "10.0.0.42";
|
|
port = 6601;
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/beets/config.yaml
|
|
assertFileContent \
|
|
home-files/.config/beets/config.yaml \
|
|
${./mpdstats-external-expected.yaml}
|
|
|
|
assertFileExists home-files/.config/systemd/user/beets-mpdstats.service
|
|
assertFileContent \
|
|
home-files/.config/systemd/user/beets-mpdstats.service \
|
|
${./mpdstats-external-expected.service}
|
|
'';
|
|
};
|
|
}
|