mirror of
https://github.com/xddxdd/nix-cachyos-kernel.git
synced 2026-07-03 19:18:07 +02:00
Allow building unfree kernel modules
This commit is contained in:
parent
88572ff3a0
commit
7dc0664c66
@ -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 = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user