blob: 65d8de048bb45b7bff1e878bcc28b1dbd1018741 (
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, nixpkgs-2211, 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
];
};
}
|