nixos-config/home/programs/dwl.nix

36 lines
577 B
Nix
Raw Permalink Normal View History

2024-07-18 19:17:30 +02:00
{
config,
pkgs,
lib,
dwl-source,
...
}:
with lib; let
cfg = config.programs.dwl;
dwlPackage = import ../packages/dwl.nix {
inherit pkgs;
inherit (cfg) patches cmd;
inherit dwl-source;
};
in {
options.programs.dwl = {
enable = mkEnableOption "dwl";
package = mkOption {
type = types.package;
default = dwlPackage;
};
patches = mkOption {
default = [];
};
cmd = {
terminal = mkOption {
default = "";
};
};
};
config = mkIf cfg.enable {
home.packages = [cfg.package];
};
}