1 { config, lib, pkgs, ... }:
3 cfg = config.hardware.digitalbitbox;
7 options.hardware.digitalbitbox = {
8 enable = lib.mkOption {
12 Enables udev rules for Digital Bitbox devices.
16 package = lib.mkPackageOption pkgs "digitalbitbox" {
18 This can be used to install a package with udev rules that differ from the defaults.
23 config = lib.mkIf cfg.enable {
24 services.udev.packages = [ cfg.package ];