2019-08-08 01:47:07 +02:00
|
|
|
# This module defines a NixOS installation CD that contains GNOME.
|
2015-10-08 14:53:37 +02:00
|
|
|
|
2022-04-04 15:56:53 +02:00
|
|
|
{ ... }:
|
2015-10-08 14:53:37 +02:00
|
|
|
|
|
|
|
{
|
2018-09-11 08:23:16 +02:00
|
|
|
imports = [ ./installation-cd-graphical-base.nix ];
|
2015-10-08 14:53:37 +02:00
|
|
|
|
2020-04-10 02:06:32 +02:00
|
|
|
isoImage.edition = "gnome";
|
|
|
|
|
2021-05-07 23:18:14 +02:00
|
|
|
services.xserver.desktopManager.gnome = {
|
2022-02-19 14:04:01 +01:00
|
|
|
# Add Firefox and other tools useful for installation to the launcher
|
2020-10-24 17:13:27 +02:00
|
|
|
favoriteAppsOverride = ''
|
|
|
|
[org.gnome.shell]
|
2022-02-19 14:04:01 +01:00
|
|
|
favorite-apps=[ 'firefox.desktop', 'nixos-manual.desktop', 'org.gnome.Terminal.desktop', 'org.gnome.Nautilus.desktop', 'gparted.desktop' ]
|
2020-10-24 17:13:27 +02:00
|
|
|
'';
|
|
|
|
enable = true;
|
|
|
|
};
|
2015-10-08 14:53:37 +02:00
|
|
|
|
2020-04-12 12:43:50 +02: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 01:47:07 +02:00
|
|
|
autoLogin = {
|
|
|
|
enable = true;
|
|
|
|
user = "nixos";
|
|
|
|
};
|
2015-10-08 14:53:37 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|