1 # This module defines a NixOS installation CD that contains X11 and
7 imports = [ ./installation-cd-graphical-calamares.nix ];
9 isoImage.edition = "plasma5";
11 services.xserver.desktopManager.plasma5 = {
15 # Automatically login as nixos.
16 services.displayManager = {
24 environment.systemPackages = with pkgs; [
25 # Graphical text editor
29 system.activationScripts.installerDesktop = let
31 # Comes from documentation.nix when xserver and nixos.enable are true.
32 manualDesktopFile = "/run/current-system/sw/share/applications/nixos-manual.desktop";
34 homeDir = "/home/nixos/";
35 desktopDir = homeDir + "Desktop/";
38 mkdir -p ${desktopDir}
39 chown nixos ${homeDir} ${desktopDir}
41 ln -sfT ${manualDesktopFile} ${desktopDir + "nixos-manual.desktop"}
42 ln -sfT ${pkgs.gparted}/share/applications/gparted.desktop ${desktopDir + "gparted.desktop"}
43 ln -sfT ${pkgs.plasma5Packages.konsole}/share/applications/org.kde.konsole.desktop ${desktopDir + "org.kde.konsole.desktop"}
44 ln -sfT ${pkgs.calamares-nixos}/share/applications/io.calamares.calamares.desktop ${desktopDir + "io.calamares.calamares.desktop"}