39 lines
713 B
Nix
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;
|
|
}
|
|
];
|
|
};
|
|
}
|