# Nixos/documentation: nixos-help: use w3m(1) by default

**URL:** https://discourse.nixos.org/t/nixos-documentation-nixos-help-use-w3m-1-by-default/3124
**Category:** Patches
**Created:** [June 8, 2019, 2:59pm UTC](https://discourse.nixos.org/t/nixos-documentation-nixos-help-use-w3m-1-by-default/3124 "2019-06-08T14:59:42Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![kl3](https://discourse.nixos.org/user_avatar/discourse.nixos.org/kl3/32/6527_2.png) [@kl3](https://discourse.nixos.org/u/kl3)
#### Post date: [June 8, 2019, 2:59pm UTC](https://discourse.nixos.org/t/nixos-documentation-nixos-help-use-w3m-1-by-default/3124/1 "2019-06-08T14:59:43Z")

</div>

It is referenced in various places, but does not work out of the box:

```auto
$ nixos-help
        /run/current-system/sw/bin/nixos-help: unable to start a web browser; please set $BROWSER

```

In the user-hidden fallbacks to xdg-open(1) and w3m(1), `nixos-help`  
expects tools to be deliberately installed by users.

For default installations and new users in general, this is unlikely to  
be the case. Conversely, chances to use `nixos-help` are even higher  
in such cases.

Use **w3m-nographics** by default to ensure documentation is always  
available. The documentation browser on _ttyS8_ already does so, but is  
not accessible in every installation, e.g. VMs with only _ttyS0_ and SSH  
available.

This obsoletes including it in the base profile’s systemPackages,  
so remove the `@TODO` as done.

Link to plaintext patch against latest HEAD `635e3b1e6fd` as produced with git-format-patch(1): [https://termbin.com/w81c](https://termbin.com/w81c)

---

<div class="post-metadata">

### Author: ![asymmetric](https://discourse.nixos.org/user_avatar/discourse.nixos.org/asymmetric/32/790_2.png) [@asymmetric](https://discourse.nixos.org/u/asymmetric)
#### Post date: [June 9, 2019, 11:12am UTC](https://discourse.nixos.org/t/nixos-documentation-nixos-help-use-w3m-1-by-default/3124/2 "2019-06-09T11:12:09Z")

</div>

Any specific reason not to open a PR? 🙂

---

<div class="post-metadata">

### Author: ![kl3](https://discourse.nixos.org/user_avatar/discourse.nixos.org/kl3/32/6527_2.png) [@kl3](https://discourse.nixos.org/u/kl3)
#### Post date: [June 9, 2019, 11:21am UTC](https://discourse.nixos.org/t/nixos-documentation-nixos-help-use-w3m-1-by-default/3124/3 "2019-06-09T11:21:57Z")

</div>

That would require me to sign up at GitHub, which is a Microsoft owned service that uses an EULA I do not agree with.

Furthermore, I do not want to support efforts where projects move their infrastructure to such a centralized monopoly. “GitHub” is becoming more and more of a synonym for “Git” due to the self-evident usage in the FOSS community.

Also, it is 2019 and yet GitHub does not support IPv6.

---

<div class="post-metadata">

### Author: ![jtojnar](https://discourse.nixos.org/user_avatar/discourse.nixos.org/jtojnar/32/70_2.png) [@jtojnar](https://discourse.nixos.org/u/jtojnar)
#### Post date: [June 9, 2019, 12:24pm UTC](https://discourse.nixos.org/t/nixos-documentation-nixos-help-use-w3m-1-by-default/3124/4 "2019-06-09T12:24:30Z")

</div>

See also [About the Patches category](https://discourse.nixos.org/t/about-the-patches-category/477)

---

<div class="post-metadata">

### Author: ![kl3](https://discourse.nixos.org/user_avatar/discourse.nixos.org/kl3/32/6527_2.png) [@kl3](https://discourse.nixos.org/u/kl3)
#### Post date: [June 9, 2019, 12:36pm UTC](https://discourse.nixos.org/t/nixos-documentation-nixos-help-use-w3m-1-by-default/3124/5 "2019-06-09T12:36:57Z")

</div>

Thanks, being new to Discourse I did not find all relevant information at first.

Should I resend the patch via mail and thereby open a new topic or does this one using a paste service still suffice?

---

<div class="post-metadata">

### Author: ![jtojnar](https://discourse.nixos.org/user_avatar/discourse.nixos.org/jtojnar/32/70_2.png) [@jtojnar](https://discourse.nixos.org/u/jtojnar)
#### Post date: [June 9, 2019, 12:39pm UTC](https://discourse.nixos.org/t/nixos-documentation-nixos-help-use-w3m-1-by-default/3124/6 "2019-06-09T12:39:02Z")

</div>

Sending via Mail is listed since it is what most people avoiding Git will want to use.

I opened a PR: [nixos/documentation: nixos-help: use w3m(1) by default by jtojnar · Pull Request #62891 · NixOS/nixpkgs · GitHub](https://github.com/NixOS/nixpkgs/pull/62891)

---

<div class="post-metadata">

### Author: ![jtojnar](https://discourse.nixos.org/user_avatar/discourse.nixos.org/jtojnar/32/70_2.png) [@jtojnar](https://discourse.nixos.org/u/jtojnar)
#### Post date: [June 9, 2019, 12:46pm UTC](https://discourse.nixos.org/t/nixos-documentation-nixos-help-use-w3m-1-by-default/3124/7 "2019-06-09T12:46:44Z")

</div>

Some review arrived: [nixos/documentation: nixos-help: use w3m(1) by default by jtojnar · Pull Request #62891 · NixOS/nixpkgs · GitHub](https://github.com/NixOS/nixpkgs/pull/62891#discussion_r291836206)

---

<div class="post-metadata">

### Author: ![kl3](https://discourse.nixos.org/user_avatar/discourse.nixos.org/kl3/32/6527_2.png) [@kl3](https://discourse.nixos.org/u/kl3)
#### Post date: [June 9, 2019, 1:54pm UTC](https://discourse.nixos.org/t/nixos-documentation-nixos-help-use-w3m-1-by-default/3124/8 "2019-06-09T13:54:31Z")

</div>

> I can’t see any motivation to remove w3m from $PATH.

It was removed because `nixos-help` no longer searches for it but rather calls it by an absoloute path now.

If w3m is still to be installed by default so users do have it in `$PATH`, then this hunk should of course be omitted.

---

<div class="post-metadata">

### Author: ![jtojnar](https://discourse.nixos.org/user_avatar/discourse.nixos.org/jtojnar/32/70_2.png) [@jtojnar](https://discourse.nixos.org/u/jtojnar)
#### Post date: [June 9, 2019, 3:10pm UTC](https://discourse.nixos.org/t/nixos-documentation-nixos-help-use-w3m-1-by-default/3124/9 "2019-06-09T15:10:37Z")

</div>

Yeah, that is how I would understand it from the comment.

**Edit:** dropped

---

<div class="post-metadata">

### Author: ![kl3](https://discourse.nixos.org/user_avatar/discourse.nixos.org/kl3/32/6527_2.png) [@kl3](https://discourse.nixos.org/u/kl3)
#### Post date: [June 22, 2019, 5:49pm UTC](https://discourse.nixos.org/t/nixos-documentation-nixos-help-use-w3m-1-by-default/3124/10 "2019-06-22T17:49:38Z")

</div>

Friendly reminder after two weeks; is there anything required from my side to potentially merge this?
