mirror of
https://github.com/nix-community/home-manager
synced 2024-12-27 12:19:48 +01:00
622fa73725
Allow configuration of mpdstats and mpdupdate plugins for Beets using Home Manager. Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
31 lines
773 B
Nix
31 lines
773 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
config = {
|
|
home.stateVersion = "23.05";
|
|
|
|
services.mpd = {
|
|
enable = true;
|
|
musicDirectory = "/my/music/dir";
|
|
network.port = 4242;
|
|
};
|
|
|
|
programs.beets = {
|
|
enable = true;
|
|
package = config.lib.test.mkStubPackage { outPath = "@beets@"; };
|
|
mpdIntegration.enableStats = true;
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/beets/config.yaml
|
|
assertFileContent \
|
|
home-files/.config/beets/config.yaml \
|
|
${./mpdstats-expected.yaml}
|
|
|
|
assertFileExists home-files/.config/systemd/user/beets-mpdstats.service
|
|
assertFileContent \
|
|
home-files/.config/systemd/user/beets-mpdstats.service \
|
|
${./mpdstats-expected.service}
|
|
'';
|
|
};
|
|
}
|