diff options
author | Nathan Ringo <nathan@remexre.com> | 2024-10-05 13:44:15 -0500 |
---|---|---|
committer | Nathan Ringo <nathan@remexre.com> | 2024-10-05 13:44:15 -0500 |
commit | 37507ecea3277a99e60c7bb077c6cd406bb80ddb (patch) | |
tree | 07432da9529cfc422cab680f2af5ba5a36533e70 /nix/module.nix | |
parent | 90661e174826684debe2532a260dcefb3b871067 (diff) |
Start of the CH559 code, adds a NixOS module for udev rules for the boards.
Starter code from https://github.com/MatzElectronics/CH559sdccUSBHost
Diffstat (limited to 'nix/module.nix')
-rw-r--r-- | nix/module.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nix/module.nix b/nix/module.nix new file mode 100644 index 0000000..73f4d4c --- /dev/null +++ b/nix/module.nix @@ -0,0 +1,14 @@ +{ config, lib, ... }: + +{ + options.hardware.numini-dev.enable = lib.mkEnableOption "numini-dev"; + + config = lib.mkIf config.hardware.numini-dev.enable { + services.udev.extraRules = '' + # CH559 + ATTRS{idVendor}=="4348", ATTRS{idProduct}=="55e0", GROUP="users" + # iCEBreaker + ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", GROUP="users" + ''; + }; +} |