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```nix
8{ programs.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```nix
25{ environment.systemPackages = [ pkgs.digitalbitbox ]; }
26```
27
28## Hardware {#sec-digitalbitbox-hardware-module}
29
30The digitalbitbox hardware package enables the udev rules for Digital Bitbox
31devices and may be installed as follows:
32```nix
33{ hardware.digitalbitbox.enable = true; }
34```
35
36In order to alter the udev rules, one may provide different values for the
37`udevRule51` and `udevRule52` attributes by means of overriding as follows:
38```nix
39{
40 programs.digitalbitbox = {
41 enable = true;
42 package = pkgs.digitalbitbox.override { udevRule51 = "something else"; };
43 };
44}
45```