Added surface configuration
This commit is contained in:
22
modules/system/desktop-environments/gnome.nix
Normal file
22
modules/system/desktop-environments/gnome.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ 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;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user