unfree refactor

This commit is contained in:
Lilith 2026-01-15 12:39:30 +01:00
parent e30124e985
commit d56695facc
No known key found for this signature in database
GPG key ID: 272C807BD91F8446
4 changed files with 32 additions and 3 deletions

View file

@ -79,9 +79,10 @@
(hardware args).nixpkgs.hostPlatform;
importNixpkgs =
system: nixpkgs:
system: host: nixpkgs:
let
config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) (import ./unfree.nix).allowed;
config.allowUnfreePredicate =
pkg: builtins.elem (lib.getName pkg) (import ./hosts/${host}/unfree.nix).allowed;
config.rocmSupport = true;
in
import nixpkgs {
@ -96,7 +97,7 @@
host: system:
lib.nixosSystem {
system = system;
pkgs = importNixpkgs system nixpkgs;
pkgs = importNixpkgs system host nixpkgs;
specialArgs = inputs // {
inherit system;
};