about summary refs log tree commit diff
path: root/modules/devkit.nix
blob: 191b534a6e99e48ae9e027ff82b2816bbfea902d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config, pkgs, unstable, unstable-small, lib, ... }:

{
  options.hardware.devkit.enable = lib.mkEnableOption "udev rules for development boards";

  config = lib.mkIf config.hardware.devkit.enable {
    # Ensure 'plugdev' group exists
    users.groups.plugdev = { };

    environment.systemPackages = [
      pkgs.openocd
    ];

    services.udev.packages = [
      # light dependency from probe-rs
      pkgs.openocd
    ];
  };
}