all repos — nixfiles @ d2f24270cae82631df86479a2d3aee5a63290ff3

System and user configuration, managed by nix and home-manager

Add support for flashing model 01

Alan Pearce
commit

d2f24270cae82631df86479a2d3aee5a63290ff3

parent

906838d6f08e42d0e840808fffb8952abc859d5f

M modules/configuration/user.nixmodules/configuration/user.nix
@@ -3,7 +3,7 @@
{ users.extraUsers.alan = { description = "Alan Pearce"; isNormalUser = true; - extraGroups = [ "audio" "wheel" "adbusers" "docker" "nitrokey" ]; + extraGroups = [ "audio" "wheel" "adbusers" "docker" "nitrokey" "dialout" ]; shell = "/run/current-system/sw/bin/zsh"; home = "/home/alan"; uid = 1000;
A modules/hardware/keyboardio-model01.nix
@@ -0,0 +1,7 @@
+{ config, pkgs, ... }: + +{ services.udev.extraRules = '' + SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2300", SYMLINK+="model01", ENV{ID_MM_DEVICE_IGNORE}:="1", ENV{ID_MM_CANDIDATE}:="0" + SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2301", SYMLINK+="model01", ENV{ID_MM_DEVICE_IGNORE}:="1", ENV{ID_MM_CANDIDATE}:="0" + ''; +}
M satoshipad.nixsatoshipad.nix
@@ -16,6 +16,7 @@ ./modules/development/lisp.nix
./modules/hardware/adb.nix ./modules/hardware/audio.nix ./modules/hardware/systemd-boot.nix + ./modules/hardware/keyboardio-model01.nix ./modules/hardware/network-manager.nix ./modules/hardware/nitrokey.nix ./modules/hardware/printing.nix