1 { config, lib, pkgs, ... }:
3 cfg = config.hardware.ubertooth;
5 ubertoothPkg = pkgs.ubertooth.override {
9 options.hardware.ubertooth = {
10 enable = lib.mkEnableOption "Ubertooth software and its udev rules";
12 group = lib.mkOption {
14 default = "ubertooth";
16 description = "Group for Ubertooth's udev rules.";
20 config = lib.mkIf cfg.enable {
21 environment.systemPackages = [ ubertoothPkg ];
23 services.udev.packages = [ ubertoothPkg ];
24 users.groups.${cfg.group} = {};