vial + udev

This commit is contained in:
TheWanderingCrow 2025-11-18 09:38:51 -05:00
parent 1b62125131
commit 432211ed27

View file

@ -7,13 +7,22 @@
pkgs,
modulesPath,
...
}: {
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["sg" "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod"];
boot.initrd.kernelModules = [];
boot.initrd.availableKernelModules = [
"sg"
"nvme"
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
@ -24,4 +33,14 @@
};
hardware.keyboard.qmk.enable = true; # QMK development stuff
environment.systemPackages = with pkgs; [ vial ];
services.udev.packages = lib.singleton (
pkgs.writeTextFile {
name = "59-vial.rules";
text = ''
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{serial}=="*vial:f64c2b3c*", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
'';
destination = "/etc/udev/rules.d/59-vial.rules";
}
);
}