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