mirror of
https://git.oat.zone/dark-firepit/dotfiles
synced 2024-04-28 08:45:04 +02:00
21 lines
365 B
Nix
21 lines
365 B
Nix
{ pkgs, config, lib, options, ... }:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.modules.desktop.apps.mpc;
|
|
in {
|
|
options.modules.desktop.apps.mpc = {
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
modules.services.mpd.enable = true;
|
|
environment.systemPackages = with pkgs; [
|
|
mpc_cli
|
|
];
|
|
};
|
|
}
|