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.
This commit is contained in:
@@ -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 = [
|
||||
{
|
||||
environment.systemPackages = with pkgs; [ tuxedo-backlight ];
|
||||
security.sudo.extraRules = [{
|
||||
users = [ "@wheel" ];
|
||||
commands = [
|
||||
{
|
||||
commands = [{
|
||||
command = "/run/current-system/sw/bin/set-backlight";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
}];
|
||||
}];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user