mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 17:57:50 +00:00
[Boot+Refactoring] Add a cmdline config option for cleaner boot option config
This commit is contained in:
parent
8457628ee6
commit
7e26d25066
6 changed files with 43 additions and 22 deletions
|
|
@ -7,12 +7,14 @@ in
|
|||
config = mkIf (hardwareCfg.gpuVendor == "amd") {
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
|
||||
boot.kernelParams = concatLists [
|
||||
aviallon.boot.cmdline = {}
|
||||
# for Southern Islands (SI ie. GCN 1) cards
|
||||
[ "radeon.si_support=0" "amdgpu.si_support=1" ]
|
||||
// { "radeon.si_support" = 0;
|
||||
"amdgpu.si_support" = 1; }
|
||||
# for Sea Islands (CIK ie. GCN 2) cards
|
||||
[ "radeon.cik_support=0" "amdgpu.cik_support=1" ]
|
||||
];
|
||||
// { "radeon.cik_support" = 0;
|
||||
"amdgpu.cik_support" = 1; }
|
||||
;
|
||||
|
||||
hardware.opengl.extraPackages = with pkgs; [
|
||||
rocm-opencl-icd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue