mirror of
https://git.oat.zone/dark-firepit/dotfiles
synced 2024-05-13 02:26:17 +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
|
||
|
];
|
||
|
};
|
||
|
}
|