Allow building unfree kernel modules

This commit is contained in:
Lan Tian 2025-12-09 23:19:13 -08:00
parent 88572ff3a0
commit 7dc0664c66
No known key found for this signature in database
GPG Key ID: 04E66B6B25A0862B

View File

@ -59,6 +59,7 @@
perSystem = perSystem =
{ {
pkgs, pkgs,
system,
... ...
}: }:
rec { rec {
@ -67,6 +68,14 @@
# Packages only contain linux-cachyos-* due to Flake schema requirements # Packages only contain linux-cachyos-* due to Flake schema requirements
packages = lib.filterAttrs (_: lib.isDerivation) legacyPackages; packages = lib.filterAttrs (_: lib.isDerivation) legacyPackages;
# Allow build unfree modules such as nvidia_x11
_module.args.pkgs = lib.mkForce (
import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
}
);
}; };
flake = { flake = {