templates: remove duplicate logic, update gnome template

This commit is contained in:
Johannes Kirschbauer
2025-07-11 08:57:06 +02:00
parent 5e8faa144d
commit 4f98f8c2f0
5 changed files with 45 additions and 32 deletions

View File

@@ -0,0 +1,23 @@
{ ... }:
{
# Can be imported into machines to enable GNOME and GDM.
#
# Copy this into a machine's configuration:
# `machines/<name>/configuration.nix`
# ```nix
# imports = [
# ../../modules/gnome.nix
# ];
# ```
# Enable the GNOME desktop environment and the GDM display manager.
# Pre NixOS: 25.11
# services.xserver.enable = true;
# services.xserver.displayManager.gdm.enable = true;
# services.xserver.desktopManager.gnome.enable = true;
# => 25.11
# services.displayManager.gdm.enable = true;
# services.desktopManager.gnome.enable = true;
}