diff --git a/hosts/workstation/hardware-configuration.nix b/hosts/workstation/hardware-configuration.nix index ac5efa0..b6d4123 100644 --- a/hosts/workstation/hardware-configuration.nix +++ b/hosts/workstation/hardware-configuration.nix @@ -1,5 +1,6 @@ { modulesPath, + config, pkgs, inputs, lib, @@ -10,9 +11,14 @@ (modulesPath + "/installer/scan/not-detected.nix") inputs.ucodenix.nixosModules.default ]; - services.ucodenix = { - enable = true; - cpuModelId = "00A50F00"; + services = { + udev.extraRules = lib.mkIf config.my.apps.gaming.enable '' + SUBSYSTEM=="usb", ATTRS{idVendor}=="0cf3", ATTRS{idProduct}=="3005", TAG+="uaccess" + ''; + ucodenix = { + enable = true; + cpuModelId = "00A50F00"; + }; }; hardware = { bluetooth = { diff --git a/jawz.nix b/jawz.nix index d4dcbec..565eadb 100644 --- a/jawz.nix +++ b/jawz.nix @@ -82,6 +82,8 @@ in "docker" "libvirt" "rslsync" + "plugdev" + "bluetooth" ]; openssh.authorizedKeys.keyFiles = [ ./secrets/ssh/ed25519_deacero.pub