2019-08-08 00:47:07 +01:00
|
|
|
# This module defines a NixOS installation CD that contains GNOME.
|
2015-10-08 13:53:37 +01:00
|
|
|
|
2019-06-16 20:59:06 +01:00
|
|
|
{ lib, ... }:
|
2015-10-08 13:53:37 +01:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
2018-09-11 07:23:16 +01:00
|
|
|
imports = [ ./installation-cd-graphical-base.nix ];
|
2015-10-08 13:53:37 +01:00
|
|
|
|
2020-04-10 01:06:32 +01:00
|
|
|
isoImage.edition = "gnome";
|
|
|
|
|
2018-09-11 07:23:16 +01:00
|
|
|
services.xserver.desktopManager.gnome3.enable = true;
|
2015-10-08 13:53:37 +01:00
|
|
|
|
2020-04-12 11:43:50 +01:00
|
|
|
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;
|
|
|
|
};
|
2019-08-08 00:47:07 +01:00
|
|
|
autoLogin = {
|
|
|
|
enable = true;
|
|
|
|
user = "nixos";
|
|
|
|
};
|
2015-10-08 13:53:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|