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

26 lines
587 B
Nix
Raw Normal View History

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