GNOME provides a simple, yet full-featured desktop environment with a focus on productivity. Its Mutter compositor supports both Wayland and X server, and the GNOME Shell user interface is fully customizable by extensions.
</para>
<sectionxml:id="sec-gnome-enable">
<title>Enabling GNOME</title>
<para>
All of the core apps, optional apps, games, and core developer tools from GNOME are available.
While it is not strictly necessary to use GDM as the display manager with GNOME, it is recommended, as some features such as screen lock <linkxlink:href="#sec-gnome-faq-can-i-use-lightdm-with-gnome">might not work</link> without it.
</para>
</note>
<para>
The default applications used in NixOS are very minimal, inspired by the defaults used in <linkxlink:href="https://gitlab.gnome.org/GNOME/gnome-build-meta/blob/40.0/elements/core/meta-gnome-core-utilities.bst">gnome-build-meta</link>.
</para>
<sectionxml:id="sec-gnome-without-the-apps">
<title>GNOME without the apps</title>
<para>
If you’d like to only use the GNOME desktop and not the apps, you can disable them with:
If you’d only like to omit a subset of the core utilities, you can use <xreflinkend="opt-environment.gnome.excludePackages"/>.
Note that this mechanism can only exclude core utilities, games and core developer tools.
</para>
</section>
<sectionxml:id="sec-gnome-disabling-services">
<title>Disabling GNOME services</title>
<para>
It is also possible to disable many of the <linkxlink:href="https://github.com/NixOS/nixpkgs/blob/b8ec4fd2a4edc4e30d02ba7b1a2cc1358f3db1d5/nixos/modules/services/x11/desktop-managers/gnome.nix#L329-L348">core services</link>. For example, if you do not need indexing files, you can disable Tracker with:
GNOME Flashback provides a desktop environment based on the classic GNOME 2 architecture. You can enable the default GNOME Flashback session, which uses the Metacity window manager, with:
It is also possible to create custom sessions that replace Metacity with a different window manager using <xreflinkend="opt-services.xserver.desktopManager.gnome.flashback.customSessions"/>.
</para>
<para>
The following example uses <literal>xmonad</literal> window manager:
Unfortunately, we lack a way for these to be managed in a completely declarative way.
So you have to enable them manually with an Extensions application.
It is possible to use a <linkxlink:href="#sec-gnome-gsettings-overrides">GSettings override</link> for this on <literal>org.gnome.shell.enabled-extensions</literal>, but that will only influence the default value.
</para>
</section>
<sectionxml:id="sec-gnome-gsettings-overrides">
<title>GSettings Overrides</title>
<para>
Majority of software building on the GNOME platform use GLib’s <linkxlink:href="https://developer.gnome.org/gio/unstable/GSettings.html">GSettings</link> system to manage runtime configuration. For our purposes, the system consists of XML schemas describing the individual configuration options, stored in the package, and a settings backend, where the values of the settings are stored. On NixOS, like on most Linux distributions, dconf database is used as the backend.
</para>
<para>
<linkxlink:href="https://developer.gnome.org/gio/unstable/GSettings.html#id-1.4.19.2.9.25">GSettings vendor overrides</link> can be used to adjust the default values for settings of the GNOME desktop and apps by replacing the default values specified in the XML schemas. Using overrides will allow you to pre-seed user settings before you even start the session.
</para>
<warning>
<para>
Overrides really only change the default values for GSettings keys so if you or an application changes the setting value, the value set by the override will be ignored. Until <linkxlink:href="https://github.com/NixOS/nixpkgs/issues/54150">NixOS’s dconf module implements changing values</link>, you will either need to keep that in mind and clear the setting from the backend using <literal>dconf reset</literal> command when that happens, or use the <linkxlink:href="https://nix-community.github.io/home-manager/options.html#opt-dconf.settings">module from home-manager</link>.
</para>
</warning>
<para>
You can override the default GSettings values using the <xreflinkend="opt-services.xserver.desktopManager.gnome.extraGSettingsOverrides"/> option.
</para>
<para>
Take note that whatever packages you want to override GSettings for, you need to add them to