2009-06-11 09:51:27 +00:00
|
|
|
# This module defines a NixOS installation CD that contains X11 and
|
2019-08-08 03:34:41 +00:00
|
|
|
# Plasma 5.
|
2009-06-11 09:51:27 +00:00
|
|
|
|
2022-04-11 18:58:57 +00:00
|
|
|
{ pkgs, ... }:
|
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
|
|
|
|
2020-04-10 00:06:32 +00:00
|
|
|
isoImage.edition = "plasma5";
|
|
|
|
|
2024-02-27 20:28:05 +00:00
|
|
|
services.xserver.desktopManager.plasma5 = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2019-10-22 04:28:47 +00:00
|
|
|
|
2024-02-27 20:28:05 +00:00
|
|
|
# Automatically login as nixos.
|
|
|
|
services.displayManager = {
|
|
|
|
sddm.enable = true;
|
|
|
|
autoLogin = {
|
|
|
|
enable = true;
|
|
|
|
user = "nixos";
|
2019-10-22 04:28:47 +00:00
|
|
|
};
|
2016-11-13 15:19:26 +00:00
|
|
|
};
|
2011-10-31 21:08:22 +00:00
|
|
|
|
2018-09-11 06:23:16 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
# Graphical text editor
|
2024-06-03 14:26:54 +00:00
|
|
|
plasma5Packages.kate
|
2018-09-11 06:23:16 +00:00
|
|
|
];
|
2011-11-08 19:02:51 +00:00
|
|
|
|
2014-10-23 16:14:41 +00:00
|
|
|
system.activationScripts.installerDesktop =
|
|
|
|
let
|
2024-12-10 19:26:33 +00:00
|
|
|
|
2019-09-06 23:27:36 +00:00
|
|
|
# Comes from documentation.nix when xserver and nixos.enable are true.
|
|
|
|
manualDesktopFile = "/run/current-system/sw/share/applications/nixos-manual.desktop";
|
2024-12-10 19:26:33 +00:00
|
|
|
|
2019-08-08 03:34:41 +00:00
|
|
|
homeDir = "/home/nixos/";
|
|
|
|
desktopDir = homeDir + "Desktop/";
|
2024-12-10 19:26:33 +00:00
|
|
|
|
2014-10-23 16:14:41 +00:00
|
|
|
in
|
|
|
|
''
|
2019-08-08 03:34:41 +00:00
|
|
|
mkdir -p ${desktopDir}
|
|
|
|
chown nixos ${homeDir} ${desktopDir}
|
2024-12-10 19:26:33 +00:00
|
|
|
|
2019-08-08 03:34:41 +00:00
|
|
|
ln -sfT ${manualDesktopFile} ${desktopDir + "nixos-manual.desktop"}
|
|
|
|
ln -sfT ${pkgs.gparted}/share/applications/gparted.desktop ${desktopDir + "gparted.desktop"}
|
2024-06-03 14:26:54 +00:00
|
|
|
ln -sfT ${pkgs.plasma5Packages.konsole}/share/applications/org.kde.konsole.desktop ${
|
|
|
|
desktopDir + "org.kde.konsole.desktop"
|
|
|
|
}
|
2014-10-23 16:14:41 +00:00
|
|
|
'';
|
|
|
|
|
2009-06-11 09:51:27 +00:00
|
|
|
}
|