forked from mirrors/nixpkgs
Merge pull request #62891 from jtojnar/nixos-documentation-nixos-help-use-w3m-1-by-default
nixos/documentation: nixos-help: use w3m(1) by default
This commit is contained in:
commit
9d9b98cdfb
|
@ -49,11 +49,7 @@ let
|
||||||
if [ -z "$browser" ]; then
|
if [ -z "$browser" ]; then
|
||||||
browser="$(type -P xdg-open || true)"
|
browser="$(type -P xdg-open || true)"
|
||||||
if [ -z "$browser" ]; then
|
if [ -z "$browser" ]; then
|
||||||
browser="$(type -P w3m || true)"
|
browser="${pkgs.w3m-nographics}/bin/w3m"
|
||||||
if [ -z "$browser" ]; then
|
|
||||||
echo "$0: unable to start a web browser; please set \$BROWSER"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
exec "$browser" ${manual.manualHTMLIndex}
|
exec "$browser" ${manual.manualHTMLIndex}
|
||||||
|
@ -187,8 +183,6 @@ in
|
||||||
})
|
})
|
||||||
|
|
||||||
(mkIf cfg.doc.enable {
|
(mkIf cfg.doc.enable {
|
||||||
# TODO(@oxij): put it here and remove from profiles?
|
|
||||||
# environment.systemPackages = [ pkgs.w3m ]; # w3m-nox?
|
|
||||||
environment.pathsToLink = [ "/share/doc" ];
|
environment.pathsToLink = [ "/share/doc" ];
|
||||||
environment.extraOutputsToInstall = [ "doc" ] ++ optional cfg.dev.enable "devdoc";
|
environment.extraOutputsToInstall = [ "doc" ] ++ optional cfg.dev.enable "devdoc";
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue