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, inputs, ... }: {
|
||||||
config,
|
# Workaround for tuxedo-drivers module bug in unstable (nixpkgs#480391)
|
||||||
pkgs,
|
# 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 = {
|
hardware.nvidia = {
|
||||||
prime = {
|
prime = {
|
||||||
offload.enable = false;
|
offload.enable = false;
|
||||||
@@ -36,18 +38,12 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [ tuxedo-backlight ];
|
||||||
tuxedo-backlight
|
security.sudo.extraRules = [{
|
||||||
];
|
users = [ "@wheel" ];
|
||||||
security.sudo.extraRules = [
|
commands = [{
|
||||||
{
|
command = "/run/current-system/sw/bin/set-backlight";
|
||||||
users = ["@wheel"];
|
options = [ "NOPASSWD" ];
|
||||||
commands = [
|
}];
|
||||||
{
|
}];
|
||||||
command = "/run/current-system/sw/bin/set-backlight";
|
|
||||||
options = ["NOPASSWD"];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user