From 4887332da83ccd7a3a92bf387c7614a9b4e06fe2 Mon Sep 17 00:00:00 2001 From: chn Date: Thu, 5 Jun 2025 17:52:49 +0800 Subject: [PATCH] modules.system.nixpkgs.buildNixpkgsConfig: use allowUnfreePredicate --- modules/system/nixpkgs/buildNixpkgsConfig.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/system/nixpkgs/buildNixpkgsConfig.nix b/modules/system/nixpkgs/buildNixpkgsConfig.nix index 0d958594..326b46dc 100644 --- a/modules/system/nixpkgs/buildNixpkgsConfig.nix +++ b/modules/system/nixpkgs/buildNixpkgsConfig.nix @@ -13,10 +13,10 @@ let { cudaForwardCompat = nixpkgs.cuda.forwardCompat; }) ); allowInsecurePredicate = p: inputs.lib.warn "Allowing insecure package ${p.name or "${p.pname}-${p.version}"}" true; + allowUnfreePredicate = p: inputs.lib.warn "Allowing unfree package ${p.name or "${p.pname}-${p.version}"}" true; config = cudaConfig // { - inherit allowInsecurePredicate; - allowUnfree = true; + inherit allowInsecurePredicate allowUnfreePredicate; android_sdk.accept_license = true; allowBroken = true; } @@ -47,7 +47,7 @@ in platformConfig // let inherit (final) system; genericPackages = import inputs.topInputs.nixpkgs - { inherit system; config = { allowUnfree = true; inherit allowInsecurePredicate; }; }; + { inherit system; config = { inherit allowInsecurePredicate allowUnfreePredicate; }; }; in { inherit genericPackages;