wip on wayland
This commit is contained in:
parent
4b10d4a813
commit
43127e2660
3 changed files with 21 additions and 2 deletions
13
nixos/components/gui/wayland.nix
Normal file
13
nixos/components/gui/wayland.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ let
|
|||
|
||||
in
|
||||
{
|
||||
config = mkIf config.components.gui.enable {
|
||||
config = mkIf config.components.gui.xorg.enable {
|
||||
environment.systemPackages = [
|
||||
lockProgram
|
||||
(pkgs.makeDesktopItem {
|
||||
|
|
Loading…
Reference in a new issue