2009-06-11 09:51:27 +00:00
|
|
|
# This module defines a NixOS installation CD that contains X11 and
|
2018-09-11 06:23:16 +00:00
|
|
|
# Plasma5.
|
2009-06-11 09:51:27 +00:00
|
|
|
|
2014-04-14 14:26:48 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
2009-06-11 09:51:27 +00:00
|
|
|
|
2014-04-14 14:26:48 +00:00
|
|
|
with lib;
|
2011-11-08 19:02:51 +00:00
|
|
|
|
2009-06-11 09:51:27 +00:00
|
|
|
{
|
2018-09-11 06:23:16 +00:00
|
|
|
imports = [ ./installation-cd-graphical-base.nix ];
|
2011-01-21 13:38:30 +00:00
|
|
|
|
2016-11-13 15:19:26 +00:00
|
|
|
services.xserver = {
|
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
|
|
|
|
2018-09-11 06:23:16 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
# Graphical text editor
|
|
|
|
kate
|
|
|
|
];
|
2011-11-08 19:02:51 +00:00
|
|
|
|
2014-10-23 16:14:41 +00:00
|
|
|
system.activationScripts.installerDesktop = let
|
2018-09-11 06:23:16 +00:00
|
|
|
|
|
|
|
manualDesktopFile = pkgs.writeScript "nixos-manual.desktop" ''
|
2014-10-23 16:14:41 +00:00
|
|
|
[Desktop Entry]
|
|
|
|
Version=1.0
|
|
|
|
Type=Application
|
|
|
|
Name=NixOS Manual
|
2018-09-06 19:17:44 +00:00
|
|
|
Exec=firefox ${config.system.build.manual.manualHTMLIndex}
|
2016-11-14 23:52:50 +00:00
|
|
|
Icon=text-html
|
2014-10-23 16:14:41 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
in ''
|
|
|
|
mkdir -p /root/Desktop
|
2018-09-11 06:23:16 +00:00
|
|
|
ln -sfT ${manualDesktopFile} /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 16:14:41 +00:00
|
|
|
ln -sfT ${pkgs.gparted}/share/applications/gparted.desktop /root/Desktop/gparted.desktop
|
|
|
|
'';
|
|
|
|
|
2009-06-11 09:51:27 +00:00
|
|
|
}
|