From d2f24270cae82631df86479a2d3aee5a63290ff3 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 6 Apr 2018 14:16:59 +0200 Subject: Add support for flashing model 01 --- modules/configuration/user.nix | 2 +- modules/hardware/keyboardio-model01.nix | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 modules/hardware/keyboardio-model01.nix (limited to 'modules') diff --git a/modules/configuration/user.nix b/modules/configuration/user.nix index 75ba17f2..1d4a1837 100644 --- a/modules/configuration/user.nix +++ b/modules/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; diff --git a/modules/hardware/keyboardio-model01.nix b/modules/hardware/keyboardio-model01.nix new file mode 100644 index 00000000..33a3fd65 --- /dev/null +++ b/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" + ''; +} -- cgit 1.4.1