blob: 17b22ec6b0f8c08eee79ba975dea9183cbc69af3 (
plain) (
tree)
|
|
{
config,
options,
lib,
pkgs,
...
}: let
mpdConfig = config.modules.desktop.apps.mpd;
in
{
options.modules.desktop.apps.mpd = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
};
};
config = lib.mkIf (mpdConfig.enable) {
home.packages = [
pkgs.mpc-cli
];
services.mpd = {
enable = true;
musicDirectory = "/home/jon/mus";
extraConfig = ''
audio_output {
type "pipewire"
name "Pipewire Output"
}
'';
user = "jon";
};
systemd.services.mpd.environment = {
XDG_RUNTIME_DIR = "/run/user/1000";
};
home.manager.programs.ncmpcpp = {
enable = true;
mpdMusicDir = /home/jon/mus;
};
};
}
|