2022-04-11 18:58:57 +00:00
|
|
|
# This module defines a NixOS installation CD that contains X11 and
|
|
|
|
# Plasma 5.
|
|
|
|
|
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ./installation-cd-graphical-calamares.nix ];
|
|
|
|
|
|
|
|
isoImage.edition = "plasma5";
|
|
|
|
|
2024-02-27 20:28:05 +00:00
|
|
|
services.xserver.desktopManager.plasma5 = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2022-04-11 18:58:57 +00:00
|
|
|
|
2024-02-27 20:28:05 +00:00
|
|
|
# Automatically login as nixos.
|
|
|
|
services.displayManager = {
|
|
|
|
sddm.enable = true;
|
|
|
|
autoLogin = {
|
|
|
|
enable = true;
|
|
|
|
user = "nixos";
|
2022-04-11 18:58:57 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
# Graphical text editor
|
2024-06-03 14:26:54 +00:00
|
|
|
plasma5Packages.kate
|
2022-04-11 18:58:57 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
system.activationScripts.installerDesktop =
|
|
|
|
let
|
2024-12-10 19:26:33 +00:00
|
|
|
|
2022-04-11 18:58:57 +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
|
|
|
|
2022-04-11 18:58:57 +00:00
|
|
|
homeDir = "/home/nixos/";
|
|
|
|
desktopDir = homeDir + "Desktop/";
|
2024-12-10 19:26:33 +00:00
|
|
|
|
2022-04-11 18:58:57 +00:00
|
|
|
in
|
|
|
|
''
|
|
|
|
mkdir -p ${desktopDir}
|
|
|
|
chown nixos ${homeDir} ${desktopDir}
|
2024-12-10 19:26:33 +00:00
|
|
|
|
2022-04-11 18:58:57 +00:00
|
|
|
ln -sfT ${manualDesktopFile} ${desktopDir + "nixos-manual.desktop"}
|
|
|
|
ln -sfT ${pkgs.gparted}/share/applications/gparted.desktop ${desktopDir + "gparted.desktop"}
|
2024-06-03 14:22:12 +00:00
|
|
|
ln -sfT ${pkgs.plasma5Packages.konsole}/share/applications/org.kde.konsole.desktop ${
|
|
|
|
desktopDir + "org.kde.konsole.desktop"
|
|
|
|
}
|
2022-04-11 18:58:57 +00:00
|
|
|
ln -sfT ${pkgs.calamares-nixos}/share/applications/io.calamares.calamares.desktop ${
|
|
|
|
desktopDir + "io.calamares.calamares.desktop"
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
|
|
|
|
}
|