wip on wayland

This commit is contained in:
Ingolf Wagner 2024-05-03 23:43:26 +02:00
parent 4b10d4a813
commit 43127e2660
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
3 changed files with 21 additions and 2 deletions

View file

@ -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;
};
}

View file

@ -4,7 +4,13 @@ with lib;
imports = [ ./xlock.nix ]; 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; # system.custom.fonts.enable = true;

View file

@ -11,7 +11,7 @@ let
in in
{ {
config = mkIf config.components.gui.enable { config = mkIf config.components.gui.xorg.enable {
environment.systemPackages = [ environment.systemPackages = [
lockProgram lockProgram
(pkgs.makeDesktopItem { (pkgs.makeDesktopItem {