From 20ddad7380fc5dc6319454c1062172674b9bb8a5 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 21 Jun 2024 18:03:46 -0400 Subject: [PATCH] nixos/desktop: move options to options.nix --- nixosModules/desktop/default.nix | 5 ----- nixosModules/options.nix | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/nixosModules/desktop/default.nix b/nixosModules/desktop/default.nix index 7c01132e..240fc3cb 100644 --- a/nixosModules/desktop/default.nix +++ b/nixosModules/desktop/default.nix @@ -15,11 +15,6 @@ ./waylandComp.nix ]; - options = { - alyraffauf.desktop.enable = - lib.mkEnableOption "Enable basic GUI X11 and Wayland environment."; - }; - config = lib.mkIf config.alyraffauf.desktop.enable { environment.sessionVariables.NIXOS_OZONE_WL = "1"; diff --git a/nixosModules/options.nix b/nixosModules/options.nix index a960a907..87c0e183 100644 --- a/nixosModules/options.nix +++ b/nixosModules/options.nix @@ -142,6 +142,8 @@ }; }; desktop = { + enable = + lib.mkEnableOption "Enable basic GUI X11 and Wayland environment."; cinnamon.enable = lib.mkEnableOption "Cinnamon desktop session."; gnome = {