Files
dwl/module.nix
2026-03-31 01:08:20 +02:00

39 lines
713 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.programs.dwl;
in
{
options.programs.dwl = {
enable = lib.mkEnableOption "dwl, a simple and hackable wayland compositor";
package = lib.mkPackageOption pkgs "dwl" { };
patches = lib.mkOption {
type = lib.types.array;
default = [ ];
description = "patches for dwl";
};
enableXwayland = lib.mkOption {
type = lib.types.bool;
default = false;
description = "compile with or without xwayland support";
};
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [
pkgs.callPackage
./package.nix
{
inherit (cfg) patches enableXwayland;
}
];
};
}