From f3462beed8aa6c3d752ec6a67c4d2ab9ff0ec071 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 6 Mar 2024 16:30:30 +0800 Subject: [PATCH] nixos/programs/gnome-session: make it explicitly enabled --- modules/nixos/programs/gnome-session/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/nixos/programs/gnome-session/default.nix b/modules/nixos/programs/gnome-session/default.nix index 41814ebb..fc6fe6e6 100644 --- a/modules/nixos/programs/gnome-session/default.nix +++ b/modules/nixos/programs/gnome-session/default.nix @@ -144,6 +144,8 @@ let in { options.programs.gnome-session = { + enable = lib.mkEnableOption "creating desktop sessions with gnome-session"; + package = lib.mkOption { type = lib.types.package; default = pkgs.gnome.gnome-session; @@ -295,7 +297,7 @@ in }; }; - config = lib.mkIf (cfg.sessions != { }) { + config = lib.mkIf (cfg.enable && cfg.sessions != { }) { # Install all of the desktop session files. services.xserver.displayManager.sessionPackages = sessionPackages; environment.systemPackages = [ cfg.package ] ++ sessionPackages;