2024-05-25 01:32:48 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
2024-05-27 22:40:30 +02:00
|
|
|
cfg = config.modules.system.desktop.gnome;
|
2024-05-25 01:32:48 +02:00
|
|
|
in
|
|
|
|
{
|
2024-05-27 22:40:30 +02:00
|
|
|
options.modules.system.desktop.gnome = {
|
2024-05-25 01:32:48 +02:00
|
|
|
enable = mkEnableOption ''
|
|
|
|
Enable gnome with my custom configurations
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
# Enable the X11 windowing system.
|
|
|
|
services.xserver.enable = true;
|
|
|
|
|
|
|
|
# Enable the Gnome Desktop Environment.
|
|
|
|
services.xserver.displayManager.gdm.enable = true;
|
|
|
|
|
|
|
|
# Enable the GNOME shell.
|
|
|
|
services.xserver.desktopManager.gnome.enable = true;
|
|
|
|
};
|
|
|
|
}
|