blob: 8ee1f1b2ed493ff523b95e4d5648cefce3754fa5 (
plain) (
tree)
|
|
{ config, lib, pkgs, user, ... }:
with lib;
let
in
{
options = {
mpd = {
enable = mkOption {
type = types.bool;
default = false;
};
};
};
config.home-manager.users.${user} = mkIf (config.mpd.enable)
{
services.mpd = {
enable = true;
musicDirectory = "/home/${user}/mus";
extraConfig = ''
audio_output {
type "pipewire"
name "Pipewire Output"
}
'';
};
home.packages = with pkgs; [
mpc-cli
ncmpcpp
];
};
}
|