Compare commits

...

2 commits

Author SHA1 Message Date
Lilith
2f7dc23398
unfree refactor 2026-01-15 12:40:47 +01:00
Lilith
d56695facc
unfree refactor 2026-01-15 12:39:30 +01:00
4 changed files with 24 additions and 3 deletions

View file

@ -79,9 +79,10 @@
(hardware args).nixpkgs.hostPlatform; (hardware args).nixpkgs.hostPlatform;
importNixpkgs = importNixpkgs =
system: nixpkgs: system: host: nixpkgs:
let 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; config.rocmSupport = true;
in in
import nixpkgs { import nixpkgs {
@ -96,7 +97,7 @@
host: system: host: system:
lib.nixosSystem { lib.nixosSystem {
system = system; system = system;
pkgs = importNixpkgs system nixpkgs; pkgs = importNixpkgs system host nixpkgs;
specialArgs = inputs // { specialArgs = inputs // {
inherit system; inherit system;
}; };

View file

@ -0,0 +1,14 @@
{
allowed = [
"steam"
"steam-unwrapped"
"libcublas"
"cuda_cudart"
"cuda_cccl"
"cuda_nvcc"
"nvidia-x11"
"nvidia-settings"
"nvidia-persistenced"
];
}

View file

@ -0,0 +1,6 @@
{
allowed = [
"steam"
"steam-unwrapped"
];
}