dotfiles/hardware/hosts/sail.nix

25 lines
527 B
Nix
Raw Normal View History

2022-07-30 16:19:49 +00:00
{ modulesPath, ... }:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot = {
loader.grub.device = "/dev/sda";
initrd = {
availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" ];
kernelModules = [ "nvme" ];
};
2022-09-23 11:23:56 +00:00
kernelModules = [ "tcp_bbr" ];
2022-09-23 11:41:19 +00:00
kernel.sysctl = {
"net.core.default_qdisc" = "fq";
"net.ipv4.tcp_congestion_control" = "bbr";
2022-11-19 19:59:48 +00:00
"net.core.rmem_max" = 2500000;
2022-09-23 11:41:19 +00:00
};
2022-07-30 16:19:49 +00:00
};
fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
}