1 { config, lib, pkgs, ... }:
4 cfg = config.programs.digitalbitbox;
8 options.programs.digitalbitbox = {
9 enable = lib.mkOption {
10 type = lib.types.bool;
13 Installs the Digital Bitbox application and enables the complementary hardware module.
17 package = lib.mkPackageOption pkgs "digitalbitbox" {
19 This can be used to install a package with udev rules that differ from the defaults.
24 config = lib.mkIf cfg.enable {
25 environment.systemPackages = [ cfg.package ];
26 hardware.digitalbitbox = {
28 package = cfg.package;
34 maintainers = with lib.maintainers; [ vidbina ];