toolbox.nix (1114B)
1 # modules/hosts/laptop/toolbox.nix 2 # 3 # NixOS-side support for the hand-written toolbox that lives, flat, in 4 # ~/.local/bin (its own git repo; not in the Nix store). Shared by the target 5 # and the bootstrap configuration. 6 { ... }: 7 { 8 flake.nixosModules.laptop-toolbox = 9 { pkgs, lib, user, ... }: 10 { 11 # Several tools keep Arch-style shebangs (#!/bin/bash: fanfix, dropterm, 12 # omarchy-menu-*; #!/usr/bin/python3: lid-control). envfs resolves those 13 # paths from the caller's PATH instead of patching the scripts. 14 services.envfs.enable = true; 15 16 # ~/.local/bin first on PATH (prepends in /etc/set-environment). 17 environment.localBinInPath = true; 18 19 users.users.${user}.extraGroups = [ 20 "input" # padx talks to the touchpad over hidraw 21 "video" 22 ]; 23 24 # padx: the Pixart 093A:0274 touchpad behind the UNIW0001 I2C-HID bridge. 25 # Replaces ~/trackpad-fix/60-padx-touchpad.rules from the Arch install. 26 services.udev.extraRules = '' 27 KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{modalias}=="hid:b0018g*v0000093Ap00000274", GROUP="input", MODE="0660" 28 ''; 29 } 30 ; 31 }