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