summary refs log tree commit diff
path: root/nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix
blob: 62cbdbcfd17bb1b4d7eabff3e8cd8af5f2ace59b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# This module defines a NixOS installation CD that contains GNOME.

{ lib, ... }:

with lib;

{
  imports = [ ./installation-cd-graphical-base.nix ];

  services.xserver.desktopManager.gnome3.enable = true;

  # Wayland can be problematic for some hardware like Nvidia graphics cards.
  services.xserver.displayManager.defaultSession = "gnome-xorg";

  services.xserver.displayManager.gdm = {
    enable = true;
    # autoSuspend makes the machine automatically suspend after inactivity.
    # It's possible someone could/try to ssh'd into the machine and obviously
    # have issues because it's inactive.
    # See:
    # * https://github.com/NixOS/nixpkgs/pull/63790
    # * https://gitlab.gnome.org/GNOME/gnome-control-center/issues/22
    autoSuspend = false;
    autoLogin = {
      enable = true;
      user = "nixos";
    };
  };

}