From 048244f122154f754185cf4d0611d27c2aa04171 Mon Sep 17 00:00:00 2001 From: m3tm3re
Date: Mon, 19 Jan 2026 19:24:34 +0100 Subject: [PATCH] fix(m3-ares): use stable tuxedo-drivers module to work around nixpkgs#480391 The unstable tuxedo-drivers module has a type error where cfg.settings (a set) is passed directly to lib.any which expects a list. This was introduced in commit 15d9ec6 and fixed in a77e30e, but the fix hasn't propagated to our nixpkgs input yet. Workaround: disable the unstable module and import from nixpkgs-stable. --- hosts/m3-ares/hardware.nix | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) 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" ]; + }]; + }]; }