1
0
Fork 0
dotfiles/hardware/hosts/attic.nix

29 lines
715 B
Nix
Raw Normal View History

2023-04-04 12:35:49 +00:00
{ pkgs, modulesPath, ... }:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot = {
loader.grub.device = "/dev/sda";
initrd = {
availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
kernelModules = [ "nvme" "tls" ];
};
kernelPackages = pkgs.linuxPackages_latest;
kernelModules = [ "tcp_bbr" ];
kernel.sysctl = {
"net.core.default_qdisc" = "fq";
"net.ipv4.tcp_congestion_control" = "bbr";
2023-05-14 10:55:29 +00:00
"net.ipv4.tcp_syncookies" = 0;
"net.ipv4.tcp_timestamps" = 1;
"net.ipv4.tcp_window_scaling" = 1;
2023-04-04 12:35:49 +00:00
"net.core.rmem_max" = 2500000;
};
};
fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
}