1# This module defines a NixOS installation CD that contains GNOME.
2
3{ lib, ... }:
4
5{
6 imports = [ ./installation-cd-graphical-base.nix ];
7
8 isoImage.edition = lib.mkDefault "gnome";
9
10 services.desktopManager.gnome = {
11 # Add Firefox and other tools useful for installation to the launcher
12 favoriteAppsOverride = ''
13 [org.gnome.shell]
14 favorite-apps=[ 'firefox.desktop', 'nixos-manual.desktop', 'org.gnome.Terminal.desktop', 'org.gnome.Nautilus.desktop', 'gparted.desktop' ]
15 '';
16 enable = true;
17 };
18
19 services.displayManager.gdm = {
20 enable = true;
21 # autoSuspend makes the machine automatically suspend after inactivity.
22 # It's possible someone could/try to ssh'd into the machine and obviously
23 # have issues because it's inactive.
24 # See:
25 # * https://github.com/NixOS/nixpkgs/pull/63790
26 # * https://gitlab.gnome.org/GNOME/gnome-control-center/issues/22
27 autoSuspend = false;
28 };
29
30 services.displayManager.autoLogin = {
31 enable = true;
32 user = "nixos";
33 };
34}