# DankMaterialShell user-session configuration.
# External DMS Home-Manager modules are imported by mkHome/modules/default.nix
# so this file only owns the m3ta-home feature flag and desired defaults.
{
  config,
  lib,
  ...
}:
with lib; let
  cfg = config.desktop.wm.dms;
in {
  options.desktop.wm.dms.enable = mkEnableOption "DankMaterialShell desktop shell";

  config = mkIf cfg.enable {
    programs.dank-material-shell = {
      enable = true;
      systemd.enable = true;
      enableDynamicTheming = true;
      enableClipboardPaste = true;

      plugins = {
        dankBatteryAlerts.enable = true;
        emojiLauncher.enable = true;
        dankPomodoroTimer.enable = true;
        dankVault.enable = true;
      };
    };
  };
}
