move firmware option to kernel

This commit is contained in:
Aditya 2024-04-11 11:17:32 +05:30
parent 9177bf6c02
commit 463b9dff23
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{pkgs, ...}: { {pkgs, ...}: {
hardware = { hardware = {
firmware = with pkgs; [firmwareLinuxNonfree]; #firmware = with pkgs; [firmwareLinuxNonfree];
opengl = { opengl = {
enable = true; enable = true;
extraPackages = with pkgs; [vaapiIntel vaapiVdpau libvdpau-va-gl intel-media-driver]; extraPackages = with pkgs; [vaapiIntel vaapiVdpau libvdpau-va-gl intel-media-driver];

View file

@ -1,4 +1,4 @@
_: { {pkgs, ...}: {
boot = { boot = {
kernelModules = ["kvm-intel" "snd-hda-intel" "i8042" "nf_nat_ftp"]; kernelModules = ["kvm-intel" "snd-hda-intel" "i8042" "nf_nat_ftp"];
extraModprobeConfig = '' extraModprobeConfig = ''
@ -10,5 +10,6 @@ _: {
"net.ipv4.conf.all.forwarding" = true; "net.ipv4.conf.all.forwarding" = true;
"net.ipv4.conf.default.forwarding" = true; "net.ipv4.conf.default.forwarding" = true;
}; };
hardware.firmware = with pkgs; [firmwareLinuxNonfree];
}; };
} }