refactor: replaced all with with builtins.attrValues

This commit is contained in:
Nick 2024-11-04 19:24:06 -06:00
parent f87d465a2c
commit b08a7694a5
12 changed files with 236 additions and 153 deletions

View file

@ -2,13 +2,22 @@
hardware = {
graphics = {
enable = true;
extraPackages = with pkgs; [
rocmPackages.clr.icd
amdvlk
];
extraPackages32 = with pkgs; [
driversi686Linux.amdvlk
];
extraPackages = builtins.attrValues {
inherit
(pkgs)
amdvlk
;
inherit
(pkgs.rocmPackages.clr)
icd
;
};
extraPackages32 = builtins.attrValues {
inherit
(pkgs.driversi686Linux)
amdvlk
;
};
};
};
boot.initrd.kernelModules = ["amdgpu"];