nixos/digitalbitbox: convert manual chapter to MD

This commit is contained in:
pennae 2023-01-02 21:43:06 +01:00
parent 3395f41bd1
commit 0a70ea5e69
3 changed files with 101 additions and 58 deletions

View file

@ -33,6 +33,8 @@ in
}; };
meta = { meta = {
# Don't edit the docbook xml directly, edit the md and generate it:
# `pandoc doc.md -t docbook --top-level-division=chapter --extract-media=media -f markdown-smart > doc.xml`
doc = ./doc.xml; doc = ./doc.xml;
maintainers = with lib.maintainers; [ vidbina ]; maintainers = with lib.maintainers; [ vidbina ];
}; };

View file

@ -0,0 +1,47 @@
# Digital Bitbox {#module-programs-digitalbitbox}
Digital Bitbox is a hardware wallet and second-factor authenticator.
The `digitalbitbox` programs module may be installed by setting
`programs.digitalbitbox` to `true` in a manner similar to
```
programs.digitalbitbox.enable = true;
```
and bundles the `digitalbitbox` package (see [](#sec-digitalbitbox-package)),
which contains the `dbb-app` and `dbb-cli` binaries, along with the hardware
module (see [](#sec-digitalbitbox-hardware-module)) which sets up the necessary
udev rules to access the device.
Enabling the digitalbitbox module is pretty much the easiest way to get a
Digital Bitbox device working on your system.
For more information, see <https://digitalbitbox.com/start_linux>.
## Package {#sec-digitalbitbox-package}
The binaries, `dbb-app` (a GUI tool) and `dbb-cli` (a CLI tool), are available
through the `digitalbitbox` package which could be installed as follows:
```
environment.systemPackages = [
pkgs.digitalbitbox
];
```
## Hardware {#sec-digitalbitbox-hardware-module}
The digitalbitbox hardware package enables the udev rules for Digital Bitbox
devices and may be installed as follows:
```
hardware.digitalbitbox.enable = true;
```
In order to alter the udev rules, one may provide different values for the
`udevRule51` and `udevRule52` attributes by means of overriding as follows:
```
programs.digitalbitbox = {
enable = true;
package = pkgs.digitalbitbox.override {
udevRule51 = "something else";
};
};
```

View file

@ -1,74 +1,68 @@
<chapter xmlns="http://docbook.org/ns/docbook" <chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="module-programs-digitalbitbox">
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
version="5.0"
xml:id="module-programs-digitalbitbox">
<title>Digital Bitbox</title> <title>Digital Bitbox</title>
<para> <para>
Digital Bitbox is a hardware wallet and second-factor authenticator. Digital Bitbox is a hardware wallet and second-factor authenticator.
</para> </para>
<para> <para>
The <literal>digitalbitbox</literal> programs module may be installed by The <literal>digitalbitbox</literal> programs module may be
setting <literal>programs.digitalbitbox</literal> to <literal>true</literal> installed by setting <literal>programs.digitalbitbox</literal> to
in a manner similar to <literal>true</literal> in a manner similar to
<programlisting> </para>
<programlisting>
programs.digitalbitbox.enable = true; programs.digitalbitbox.enable = true;
</programlisting> </programlisting>
<para>
and bundles the <literal>digitalbitbox</literal> package (see and bundles the <literal>digitalbitbox</literal> package (see
<xref <xref linkend="sec-digitalbitbox-package"></xref>), which contains
linkend="sec-digitalbitbox-package" />), which contains the the <literal>dbb-app</literal> and <literal>dbb-cli</literal>
<literal>dbb-app</literal> and <literal>dbb-cli</literal> binaries, along binaries, along with the hardware module (see
with the hardware module (see <xref linkend="sec-digitalbitbox-hardware-module"></xref>) which
<xref sets up the necessary udev rules to access the device.
linkend="sec-digitalbitbox-hardware-module" />) which sets up the
necessary udev rules to access the device.
</para> </para>
<para> <para>
Enabling the digitalbitbox module is pretty much the easiest way to get a Enabling the digitalbitbox module is pretty much the easiest way to
Digital Bitbox device working on your system. get a Digital Bitbox device working on your system.
</para> </para>
<para> <para>
For more information, see For more information, see
<link xlink:href="https://digitalbitbox.com/start_linux" />. <link xlink:href="https://digitalbitbox.com/start_linux" role="uri">https://digitalbitbox.com/start_linux</link>.
</para> </para>
<section xml:id="sec-digitalbitbox-package"> <section xml:id="sec-digitalbitbox-package">
<title>Package</title> <title>Package</title>
<para> <para>
The binaries, <literal>dbb-app</literal> (a GUI tool) and The binaries, <literal>dbb-app</literal> (a GUI tool) and
<literal>dbb-cli</literal> (a CLI tool), are available through the <literal>dbb-cli</literal> (a CLI tool), are available through the
<literal>digitalbitbox</literal> package which could be installed as <literal>digitalbitbox</literal> package which could be installed
follows: as follows:
<programlisting> </para>
<programlisting>
environment.systemPackages = [ environment.systemPackages = [
pkgs.digitalbitbox pkgs.digitalbitbox
]; ];
</programlisting> </programlisting>
</para>
</section> </section>
<section xml:id="sec-digitalbitbox-hardware-module"> <section xml:id="sec-digitalbitbox-hardware-module">
<title>Hardware</title> <title>Hardware</title>
<para> <para>
The digitalbitbox hardware package enables the udev rules for Digital Bitbox The digitalbitbox hardware package enables the udev rules for
devices and may be installed as follows: Digital Bitbox devices and may be installed as follows:
<programlisting> </para>
<programlisting>
hardware.digitalbitbox.enable = true; hardware.digitalbitbox.enable = true;
</programlisting> </programlisting>
</para>
<para> <para>
In order to alter the udev rules, one may provide different values for the In order to alter the udev rules, one may provide different values
<literal>udevRule51</literal> and <literal>udevRule52</literal> attributes for the <literal>udevRule51</literal> and
by means of overriding as follows: <literal>udevRule52</literal> attributes by means of overriding as
<programlisting> follows:
</para>
<programlisting>
programs.digitalbitbox = { programs.digitalbitbox = {
enable = true; enable = true;
package = pkgs.digitalbitbox.override { package = pkgs.digitalbitbox.override {
udevRule51 = "something else"; udevRule51 = &quot;something else&quot;;
}; };
}; };
</programlisting> </programlisting>
</para>
</section> </section>
</chapter> </chapter>