nixos-config/home-manager/modules/mpd/default.nix

28 lines
428 B
Nix
Raw Normal View History

2022-11-11 11:54:21 +01:00
{ pkgs
, config
, lib
, ...
}:
with lib; let
cfg = config.eboskma.programs.mpd;
in
{
options.eboskma.programs.mpd = { enable = mkEnableOption "mpd"; };
config = mkIf cfg.enable {
2022-11-11 11:54:21 +01:00
services.mpd = {
enable = true;
network = {
startWhenNeeded = true;
};
};
services.mpdris2 = {
enable = true;
notifications = true;
};
2022-11-17 14:06:39 +01:00
home.packages = with pkgs; [ mpc-cli ];
2022-11-11 11:54:21 +01:00
};
}