diff --git a/hosts/m3-ares/hardware.nix b/hosts/m3-ares/hardware.nix index 24ad499..0de7bec 100644 --- a/hosts/m3-ares/hardware.nix +++ b/hosts/m3-ares/hardware.nix @@ -1,8 +1,10 @@ -{ - config, - pkgs, - ... -}: { +{ config, pkgs, inputs, ... }: { + # Workaround for tuxedo-drivers module bug in unstable (nixpkgs#480391) + # The unstable module has a type error - use stable module until fix propagates + disabledModules = [ "hardware/tuxedo-drivers.nix" ]; + imports = + [ "${inputs.nixpkgs-stable}/nixos/modules/hardware/tuxedo-drivers.nix" ]; + hardware.nvidia = { prime = { offload.enable = false; @@ -36,18 +38,12 @@ }; }; - environment.systemPackages = with pkgs; [ - tuxedo-backlight - ]; - security.sudo.extraRules = [ - { - users = ["@wheel"]; - commands = [ - { - command = "/run/current-system/sw/bin/set-backlight"; - options = ["NOPASSWD"]; - } - ]; - } - ]; + environment.systemPackages = with pkgs; [ tuxedo-backlight ]; + security.sudo.extraRules = [{ + users = [ "@wheel" ]; + commands = [{ + command = "/run/current-system/sw/bin/set-backlight"; + options = [ "NOPASSWD" ]; + }]; + }]; }