mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-30 22:57:55 +00:00
nixos/programs/gnome-session: make it explicitly enabled
This commit is contained in:
parent
01fd15fc8a
commit
f3462beed8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user