nixos-config/home-manager/modules/mpd/default.nix
Erwin Boskma 4cd0f83ce8
Some checks failed
/ check (push) Failing after 2m46s
Run nixfmt
2024-02-05 11:46:52 +01:00

40 lines
635 B
Nix

{
pkgs,
config,
lib,
...
}:
with lib;
let
cfg = config.eboskma.programs.mpd;
in
{
options.eboskma.programs.mpd = {
enable = mkEnableOption "mpd";
};
config = mkIf cfg.enable {
services.mpd = {
enable = true;
network = {
startWhenNeeded = true;
};
extraConfig = ''
audio_output {
type "pipewire"
name "PipeWire Sound Server"
}
'';
};
services.mpdris2 = {
enable = true;
notifications = true;
};
home.packages = with pkgs; [
mpc-cli
(ncmpcpp.override { visualizerSupport = true; })
];
};
}