nix/lib/modules/wayland.nix
2024-01-05 18:46:17 +00:00

16 lines
322 B
Nix

{user}: {
lib,
pkgs,
config,
...
}:
with lib; let
opt = config.windowManager;
in {
options.windowManager = mkOption {
default = null;
type = lib.types.oneOf ["hyprland" "sway"];
};
config = if opt == "hyprland" then (import ../programs/hyprland.nix {inherit user;} {inherit lib pkgs;}) else {};
}