From f737eecdade66600fcd75fbabcef28660eccf09c Mon Sep 17 00:00:00 2001 From: sefidel Date: Sun, 15 Oct 2023 17:19:48 +0900 Subject: feat(modules/devkit): init --- modules/devkit.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 modules/devkit.nix (limited to 'modules') 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 + ]; + }; +} -- cgit 1.4.1