diff options
-rw-r--r-- | modules/devkit.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/devkit.nix b/modules/devkit.nix new file mode 100644 index 0000000..65d8de0 --- /dev/null +++ b/modules/devkit.nix @@ -0,0 +1,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 + ]; + }; +} |