mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 09:47:52 +00:00
[Hardware] Add good intel support and basic nvidia support
This commit is contained in:
parent
7c6198be6f
commit
6322c89fb6
4 changed files with 44 additions and 13 deletions
|
|
@ -1,8 +1,22 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
inherit (cfg);
|
||||
hardwareCfg = config.aviallon.hardware;
|
||||
in
|
||||
{
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
config = mkIf (hardwareCfg.gpuVendor == "amd") {
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
|
||||
boot.kernelParams = concatLists [
|
||||
# for Southern Islands (SI ie. GCN 1) cards
|
||||
[ "radeon.si_support=0" "amdgpu.si_support=1" ]
|
||||
# for Sea Islands (CIK ie. GCN 2) cards
|
||||
[ "radeon.cik_support=0" "amdgpu.cik_support=1" ]
|
||||
];
|
||||
|
||||
hardware.opengl.extraPackages = with pkgs; [
|
||||
rocm-opencl-icd
|
||||
rocm-opencl-runtime
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue