nix/build.conf.nix
2023-08-15 21:11:02 -04:00

14 lines
363 B
Nix

input@{ wm ? null, ...}:
with builtins;
input //
rec {
# should probably split plasma into plasma-x11 and plasma-wayland at some point
x11-wms = ["plasma" "xmonad" "i3"];
wayland-wms = ["hyprland" "sway"];
wms = x11-wms ++ wayland-wms;
# very, very non-exhaustive of course
is-x11 = wm: elem wm x11-wms;
is-wayland = wm: elem wm wayland-wms;
}