mirror of
https://github.com/xddxdd/nix-cachyos-kernel.git
synced 2026-07-03 11:08:07 +02:00
Allow building unfree kernel modules
This commit is contained in:
parent
88572ff3a0
commit
7dc0664c66
@ -59,6 +59,7 @@
|
||||
perSystem =
|
||||
{
|
||||
pkgs,
|
||||
system,
|
||||
...
|
||||
}:
|
||||
rec {
|
||||
@ -67,6 +68,14 @@
|
||||
|
||||
# Packages only contain linux-cachyos-* due to Flake schema requirements
|
||||
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 = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user