forked from mirrors/nixpkgs
e9cade383c
The live image is primarily used for installation so we should make link to manual as well as other useful tools front and center, instead of having them buried in the app drawer. The default GNOME apps can still be found there when the ISO is used for demonstration purposes.
39 lines
1 KiB
Nix
39 lines
1 KiB
Nix
# This module defines a NixOS installation CD that contains GNOME.
|
|
|
|
{ lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
imports = [ ./installation-cd-graphical-base.nix ];
|
|
|
|
isoImage.edition = "gnome";
|
|
|
|
services.xserver.desktopManager.gnome = {
|
|
# Add Firefox and other tools useful for installation to the launcher
|
|
favoriteAppsOverride = ''
|
|
[org.gnome.shell]
|
|
favorite-apps=[ 'firefox.desktop', 'nixos-manual.desktop', 'org.gnome.Terminal.desktop', 'org.gnome.Nautilus.desktop', 'gparted.desktop' ]
|
|
'';
|
|
enable = true;
|
|
};
|
|
|
|
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";
|
|
};
|
|
};
|
|
|
|
}
|