unfree refactor
This commit is contained in:
parent
e30124e985
commit
d56695facc
4 changed files with 32 additions and 3 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue