diff --git a/nixos/components/gui/wayland.nix b/nixos/components/gui/wayland.nix new file mode 100644 index 0000000..1aeed23 --- /dev/null +++ b/nixos/components/gui/wayland.nix @@ -0,0 +1,13 @@ +{ config, pkgs, lib, ... }: +with lib; +{ + + options.components.gui.wayland.enable = mkOption { + type = lib.types.bool; + default = ! config.components.gui.xorg.enable; + }; + + config = mkIf config.components.gui.wayland.enable { + programs.hyprland.enable = true; + }; +} diff --git a/nixos/components/gui/xorg/default.nix b/nixos/components/gui/xorg/default.nix index 4d7a3d1..c4bfa2d 100644 --- a/nixos/components/gui/xorg/default.nix +++ b/nixos/components/gui/xorg/default.nix @@ -4,7 +4,13 @@ with lib; imports = [ ./xlock.nix ]; - config = mkIf config.components.gui.enable { + options.components.gui.xorg.enable = mkOption { + type = lib.types.bool; + default = config.components.gui.enable; + }; + + + config = mkIf config.components.gui.xorg.enable { # system.custom.fonts.enable = true; diff --git a/nixos/components/gui/xorg/xlock.nix b/nixos/components/gui/xorg/xlock.nix index b0877f1..d597059 100644 --- a/nixos/components/gui/xorg/xlock.nix +++ b/nixos/components/gui/xorg/xlock.nix @@ -11,7 +11,7 @@ let in { - config = mkIf config.components.gui.enable { + config = mkIf config.components.gui.xorg.enable { environment.systemPackages = [ lockProgram (pkgs.makeDesktopItem {