feat: more modules
This commit is contained in:
parent
98b71eeddc
commit
8e23015029
5 changed files with 104 additions and 6 deletions
23
computers/shared/mpd.nix
Normal file
23
computers/shared/mpd.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.alqueva.mpd;
|
||||
in {
|
||||
options.alqueva.mpd = {
|
||||
enable = lib.mkEnableOption "mpd";
|
||||
ncmpcpp = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Enable ncmpcpp alongside mpd.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.mpd.enable = true;
|
||||
environment.systemPackages =
|
||||
lib.optional cfg.ncmpcpp pkgs.ncmpcpp;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue