@@ -41,7 +41,7 @@ let
4141
4242 entry = "${manual.manual}/share/doc/nixos/index.html";
4343
44− help = pkgs.writeScriptBin "nixos-help"
44+ helpScript = pkgs.writeScriptBin "nixos-help"
4545 ''
4646 #! ${pkgs.stdenv.shell} -e
4747 browser="$BROWSER"
@@ -58,6 +58,15 @@ let
5858 exec "$browser" ${entry}
5959 '';
6060
61+ desktopItem = pkgs.makeDesktopItem {
62+ name = "nixos-manual";
63+ desktopName = "NixOS Manual";
64+ genericName = "View NixOS documentation in a web browser";
65+ # TODO: find a better icon (Nix logo + help overlay?)
66+ icon = "system-help";
67+ exec = "${helpScript}/bin/nixos-help";
68+ categories = "System";
69+ };
6170in
6271
6372{
@@ -105,7 +114,8 @@ in
105114 system.build.manual = manual;
106115
107116 environment.systemPackages =
108− [ manual.manual help ]
117+ [ manual.manual helpScript ]
118+ ++ optional config.services.xserver.enable desktopItem
109119 ++ optional config.programs.man.enable manual.manpages;
110120
111121 boot.extraTTYs = mkIf cfg.showManual ["tty${toString cfg.ttyNumber}"];