nix-conf/modules/nixos/kernel/default.nix

16 lines
454 B
Nix
Raw Normal View History

2024-04-11 05:47:32 +00:00
{pkgs, ...}: {
boot = {
kernelModules = ["kvm-intel" "snd-hda-intel" "i8042" "nf_nat_ftp"];
extraModprobeConfig = ''
options snd-hda-intel model=alc255-acer,dell-headset-multi
options i8042 nopnp=1
'';
kernelParams = ["allow-discards"];
kernel.sysctl = {
"net.ipv4.conf.all.forwarding" = true;
"net.ipv4.conf.default.forwarding" = true;
};
};
2024-04-11 07:45:25 +00:00
hardware.firmware = with pkgs; [firmwareLinuxNonfree];
}