mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
- The program module is now called dank-material-shell - The homeModules structure is flattened
28 lines
564 B
Nix
28 lines
564 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
dmsPkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.programs.dank-material-shell;
|
|
in
|
|
{
|
|
packages = [
|
|
dmsPkgs.dms-shell
|
|
]
|
|
++ lib.optional cfg.enableSystemMonitoring dmsPkgs.dgop
|
|
++ lib.optionals cfg.enableVPN [
|
|
pkgs.glib
|
|
pkgs.networkmanager
|
|
]
|
|
++ lib.optional cfg.enableDynamicTheming pkgs.matugen
|
|
++ lib.optional cfg.enableAudioWavelength pkgs.cava
|
|
++ lib.optional cfg.enableCalendarEvents pkgs.khal;
|
|
|
|
plugins = lib.mapAttrs (name: plugin: {
|
|
source = plugin.src;
|
|
}) (lib.filterAttrs (n: v: v.enable) cfg.plugins);
|
|
}
|