From bce2fbf0c82141b4243d1d4b55bfda6d612efcf8 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 30 Jul 2023 16:45:00 +0300 Subject: [PATCH] add gnome --- modules/desktop/gnome/default.nix | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 modules/desktop/gnome/default.nix diff --git a/modules/desktop/gnome/default.nix b/modules/desktop/gnome/default.nix new file mode 100644 index 00000000..e388ee9c --- /dev/null +++ b/modules/desktop/gnome/default.nix @@ -0,0 +1,36 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.gnome; +in +{ + options.modules.desktop.gnome = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + services.xserver = { + enable = true; + displayManager = { + gdm = { + enable = true; + # not taking any chances + wayland = false; + }; + }; + desktopManager = { + gnome = { + enable = true; + }; + }; + }; + # gnome extensions + environment.systemPackages = with pkgs; [ + gnomeExtensions.appindicator + ]; + # gnome udev settings + services.udev.packages = with pkgs; [ + gnome.gnome-settings-daemon + ]; + }; +}