nix/modules/system/desktop-environments/gnome.nix

28 lines
581 B
Nix
Raw Normal View History

2025-01-07 13:15:33 +01:00
{ config, lib, pkgs, ... }:
2024-12-24 14:55:11 +01:00
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;
2025-01-07 13:15:33 +01:00
environment.systemPackages = [
pkgs.gnome-tweaks
2025-01-07 13:18:12 +01:00
pkgs.gnome-extension-manager
2025-01-07 13:15:33 +01:00
];
2024-12-24 14:55:11 +01:00
};
}