nixos-config/home-manager/modules/mpd/default.nix
2022-11-17 14:06:39 +01:00

27 lines
430 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;
};
};
services.mpdris2 = {
enable = true;
notifications = true;
};
home.packages = with pkgs; [ mpc-cli ];
};
}