nix/modules/system/desktop-environments/gnome.nix
2024-12-24 14:55:11 +01:00

23 lines
473 B
Nix

{ config, lib, ... }:
with lib;
let
cfg = config.settings.desktop-environments.gnome;
in {
options = {
settings.desktop-environments.gnome.enable = lib.mkOption {
type = lib.types.bool;
description = ''
Enable gnome desktop environment
'';
};
};
config = mkIf cfg.enable {
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
};
}