From 1a1e3c7242c20b262ef50de3c259ca83c522c7df Mon Sep 17 00:00:00 2001 From: arnaucube Date: Sat, 1 Feb 2025 10:41:30 +0100 Subject: [PATCH] nixos config add keyboard utilities --- nixos/common-configuration.nix | 21 ++++++++++++++++++++- nixos/thinkpad-configuration.nix | 3 +++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/nixos/common-configuration.nix b/nixos/common-configuration.nix index 331a032..394bfcc 100644 --- a/nixos/common-configuration.nix +++ b/nixos/common-configuration.nix @@ -64,6 +64,7 @@ xorg.xmodmap # keyboard remapping xfce.xfce4-screenshooter pulseaudio + usbutils # code editors vim @@ -117,6 +118,7 @@ pgf ; }) + gnumake #gcc clang clang-tools @@ -129,10 +131,15 @@ sage go (python3.withPackages(ps: with ps; [ - matplotlib numpy + matplotlib numpy qmk ])) pipx nodejs + + # other + qmk + vial + via ]; environment.variables = { @@ -174,4 +181,16 @@ services.blueman.enable = true; #hardware.pulseaudio.enable = true; + + # udev rules (for Vial) + services.udev.extraRules = '' + KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="4653", ATTRS{idProduct}=="0001", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl" + ''; + services.udev.packages = with pkgs; [ + qmk + qmk-udev-rules + qmk_hid + via + vial + ]; } diff --git a/nixos/thinkpad-configuration.nix b/nixos/thinkpad-configuration.nix index 1095d6b..ed39001 100644 --- a/nixos/thinkpad-configuration.nix +++ b/nixos/thinkpad-configuration.nix @@ -45,4 +45,7 @@ services.gvfs.enable = true; hardware.pulseaudio.enable = true; + + # allow AppImage programs + programs.appimage.binfmt = true; }