hosts/hosts/development.nix

46 lines
1.7 KiB
Nix

{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
picocom
usbutils # lsusb etc.
binwalk
];
systemd.services.ModemManager.enable = lib.mkForce false;
users.extraGroups = {
plugdev = {
members = [ "fruchti" ];
};
};
services.udev.extraRules = ''
# CH340 USB-serial
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", MODE="0660", GROUP="plugdev"
# ESP32 devkit USB-serial
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="55d4", MODE="0660", GROUP="plugdev"
# Prolific USB-TTL
SUBSYSTEM=="tty", ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", MODE="0660", GROUP="plugdev"
# OpenBench Logic Sniffer
SUBSYSTEM=="tty", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="fc92", MODE="0660", GROUP="plugdev", SYMLINK+="OpenLogicSniffer"
# ST-LINK/V2
SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", MODE="0660", GROUP="plugdev"
# WCH-LinkE
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="8010", MODE="0660", GROUP="plugdev"
# Glasgow
SUBSYSTEM=="usb", ATTRS{idVendor}=="20b7", ATTRS{idProduct}=="9db1", MODE="0660", GROUP="plugdev"
# Shared V-USB VID:PID for use with various homebrew stuff
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05dc", MODE="0660", GROUP="plugdev"
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05df", MODE="0660", GROUP="plugdev"
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05e1", MODE="0660", GROUP="plugdev"
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05e4", MODE="0660", GROUP="plugdev"
'';
}