2009-06-11 10:51:27 +01:00
|
|
|
# This module defines a NixOS installation CD that contains X11 and
|
2016-11-13 15:19:26 +00:00
|
|
|
# KDE 5.
|
2009-06-11 10:51:27 +01:00
|
|
|
|
2014-04-14 15:26:48 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
2009-06-11 10:51:27 +01:00
|
|
|
|
2014-04-14 15:26:48 +01:00
|
|
|
with lib;
|
2011-11-08 19:02:51 +00:00
|
|
|
|
2009-06-11 10:51:27 +01:00
|
|
|
{
|
2016-11-13 15:19:26 +00:00
|
|
|
imports = [ ./installation-cd-base.nix ];
|
2011-01-21 13:38:30 +00:00
|
|
|
|
2016-11-13 15:19:26 +00:00
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
# Automatically login as root.
|
|
|
|
displayManager.slim = {
|
|
|
|
enable = true;
|
|
|
|
defaultUser = "root";
|
|
|
|
autoLogin = true;
|
|
|
|
};
|
|
|
|
|
2017-02-28 17:26:01 +00:00
|
|
|
desktopManager.plasma5 = {
|
2016-11-14 15:59:22 +00:00
|
|
|
enable = true;
|
|
|
|
enableQt4Support = false;
|
|
|
|
};
|
2016-11-13 15:19:26 +00:00
|
|
|
|
|
|
|
# Enable touchpad support for many laptops.
|
|
|
|
synaptics.enable = true;
|
|
|
|
};
|
2011-10-31 21:08:22 +00:00
|
|
|
|
2015-06-04 09:33:52 +01:00
|
|
|
environment.systemPackages =
|
2016-11-13 15:19:26 +00:00
|
|
|
[ pkgs.glxinfo
|
|
|
|
|
|
|
|
# Include gparted for partitioning disks.
|
2015-06-04 09:33:52 +01:00
|
|
|
pkgs.gparted
|
|
|
|
|
2016-11-13 15:19:26 +00:00
|
|
|
# Firefox for reading the manual.
|
|
|
|
pkgs.firefox
|
|
|
|
|
2015-06-04 09:33:52 +01:00
|
|
|
# Include some editors.
|
|
|
|
pkgs.vim
|
|
|
|
pkgs.bvi # binary editor
|
|
|
|
pkgs.joe
|
|
|
|
];
|
|
|
|
|
2014-10-23 12:23:40 +01:00
|
|
|
# Provide networkmanager for easy wireless configuration.
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
networking.wireless.enable = mkForce false;
|
|
|
|
|
2011-10-31 21:08:22 +00:00
|
|
|
# KDE complains if power management is disabled (to be precise, if
|
|
|
|
# there is no power management backend such as upower).
|
|
|
|
powerManagement.enable = true;
|
2011-11-08 16:17:37 +00:00
|
|
|
|
|
|
|
# Don't start the X server by default.
|
|
|
|
services.xserver.autorun = mkForce false;
|
2011-11-08 19:02:51 +00:00
|
|
|
|
2014-10-23 17:14:41 +01:00
|
|
|
system.activationScripts.installerDesktop = let
|
|
|
|
desktopFile = pkgs.writeText "nixos-manual.desktop" ''
|
|
|
|
[Desktop Entry]
|
|
|
|
Version=1.0
|
|
|
|
Type=Application
|
|
|
|
Name=NixOS Manual
|
2016-11-14 23:52:50 +00:00
|
|
|
Exec=firefox ${config.system.build.manual.manual}/share/doc/nixos/index.html
|
|
|
|
Icon=text-html
|
2014-10-23 17:14:41 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
in ''
|
|
|
|
mkdir -p /root/Desktop
|
|
|
|
ln -sfT ${desktopFile} /root/Desktop/nixos-manual.desktop
|
2017-02-28 17:26:01 +00:00
|
|
|
ln -sfT ${pkgs.konsole}/share/applications/org.kde.konsole.desktop /root/Desktop/org.kde.konsole.desktop
|
2014-10-23 17:14:41 +01:00
|
|
|
ln -sfT ${pkgs.gparted}/share/applications/gparted.desktop /root/Desktop/gparted.desktop
|
|
|
|
'';
|
|
|
|
|
2009-06-11 10:51:27 +01:00
|
|
|
}
|