Add amdgpu to kernel initrd, enable opengl drisupport
This commit is contained in:
parent
aad1490af9
commit
fdb2305170
|
@ -3,13 +3,19 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
boot.extraModulePackages = with config.boot.kernelPackages; [v4l2loopback];
|
boot = {
|
||||||
boot.extraModprobeConfig = ''
|
initrd.kernelModules = ["amdgpu"];
|
||||||
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
extraModulePackages = with config.boot.kernelPackages; [v4l2loopback];
|
||||||
'';
|
extraModprobeConfig = ''
|
||||||
hardware.opengl.driSupport32Bit = true;
|
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
||||||
hardware.opengl.extraPackages = with pkgs; [amdvlk rocmPackages.clr.icd];
|
'';
|
||||||
hardware.opengl.extraPackages32 = [pkgs.driversi686Linux.amdvlk];
|
};
|
||||||
|
hardware.opengl = {
|
||||||
|
driSupport = true;
|
||||||
|
driSupport32Bit = true;
|
||||||
|
extraPackages = with pkgs; [amdvlk rocmPackages.clr.icd];
|
||||||
|
extraPackages32 = [pkgs.driversi686Linux.amdvlk];
|
||||||
|
};
|
||||||
services.ollama.enable = true;
|
services.ollama.enable = true;
|
||||||
networking.wg-quick.interfaces = {
|
networking.wg-quick.interfaces = {
|
||||||
protonvpn = {
|
protonvpn = {
|
||||||
|
|
Loading…
Reference in a new issue