From 0f2536f15b6c8ec841ea6b9c761602612f6cf75f Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Wed, 7 Aug 2019 19:53:47 -0400 Subject: nixos/release: rename iso_graphical to iso_plasma5 And all the other things and paths to match it --- .../cd-dvd/installation-cd-graphical-plasma5.nix | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 nixos/modules/installer/cd-dvd/installation-cd-graphical-plasma5.nix (limited to 'nixos/modules/installer/cd-dvd/installation-cd-graphical-plasma5.nix') diff --git a/nixos/modules/installer/cd-dvd/installation-cd-graphical-plasma5.nix b/nixos/modules/installer/cd-dvd/installation-cd-graphical-plasma5.nix new file mode 100644 index 00000000000..e00d3f7535b --- /dev/null +++ b/nixos/modules/installer/cd-dvd/installation-cd-graphical-plasma5.nix @@ -0,0 +1,48 @@ +# This module defines a NixOS installation CD that contains X11 and +# Plasma 5. + +{ config, lib, pkgs, ... }: + +with lib; + +{ + imports = [ ./installation-cd-graphical-base.nix ]; + + services.xserver = { + desktopManager.plasma5 = { + enable = true; + }; + + # Automatically login as nixos. + displayManager.sddm = { + enable = true; + autoLogin = { + enable = true; + user = "nixos"; + }; + }; + }; + + environment.systemPackages = with pkgs; [ + # Graphical text editor + kate + ]; + + system.activationScripts.installerDesktop = let + + # Comes from documentation.nix when xserver and nixos.enable are true. + manualDesktopFile = "/run/current-system/sw/share/applications/nixos-manual.desktop"; + + homeDir = "/home/nixos/"; + desktopDir = homeDir + "Desktop/"; + + in '' + mkdir -p ${desktopDir} + chown nixos ${homeDir} ${desktopDir} + + ln -sfT ${manualDesktopFile} ${desktopDir + "nixos-manual.desktop"} + ln -sfT ${pkgs.gparted}/share/applications/gparted.desktop ${desktopDir + "gparted.desktop"} + ln -sfT ${pkgs.konsole}/share/applications/org.kde.konsole.desktop ${desktopDir + "org.kde.konsole.desktop"} + ''; + +} -- cgit 1.4.1