installation-cd-graphical-kde: put manual link directly on desktop

This commit is contained in:
Thomas Tuegel 2016-11-14 17:52:50 -06:00
parent 8c3aa5a484
commit 66d9772f0b
No known key found for this signature in database
GPG Key ID: 22CBF5249D4B4D59

View File

@ -53,21 +53,14 @@ with lib;
# Don't start the X server by default.
services.xserver.autorun = mkForce false;
# Custom kde-workspace adding some icons on the desktop
system.activationScripts.installerDesktop = let
openManual = pkgs.writeScript "nixos-manual.sh" ''
#!${pkgs.stdenv.shell}
cd ${config.system.build.manual.manual}/share/doc/nixos/
firefox ./index.html
'';
desktopFile = pkgs.writeText "nixos-manual.desktop" ''
[Desktop Entry]
Version=1.0
Type=Application
Name=NixOS Manual
Exec=${openManual}
Icon=firefox
Exec=firefox ${config.system.build.manual.manual}/share/doc/nixos/index.html
Icon=text-html
'';
in ''