1# Digital Bitbox {#module-programs-digitalbitbox}
2
3Digital Bitbox is a hardware wallet and second-factor authenticator.
4
5The `digitalbitbox` programs module may be installed by setting
6`programs.digitalbitbox` to `true` in a manner similar to
7```
8programs.digitalbitbox.enable = true;
9```
10and bundles the `digitalbitbox` package (see [](#sec-digitalbitbox-package)),
11which contains the `dbb-app` and `dbb-cli` binaries, along with the hardware
12module (see [](#sec-digitalbitbox-hardware-module)) which sets up the necessary
13udev rules to access the device.
14
15Enabling the digitalbitbox module is pretty much the easiest way to get a
16Digital Bitbox device working on your system.
17
18For more information, see <https://digitalbitbox.com/start_linux>.
19
20## Package {#sec-digitalbitbox-package}
21
22The binaries, `dbb-app` (a GUI tool) and `dbb-cli` (a CLI tool), are available
23through the `digitalbitbox` package which could be installed as follows:
24```
25environment.systemPackages = [
26 pkgs.digitalbitbox
27];
28```
29
30## Hardware {#sec-digitalbitbox-hardware-module}
31
32The digitalbitbox hardware package enables the udev rules for Digital Bitbox
33devices and may be installed as follows:
34```
35hardware.digitalbitbox.enable = true;
36```
37
38In order to alter the udev rules, one may provide different values for the
39`udevRule51` and `udevRule52` attributes by means of overriding as follows:
40```
41programs.digitalbitbox = {
42 enable = true;
43 package = pkgs.digitalbitbox.override {
44 udevRule51 = "something else";
45 };
46};
47```