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

29 lines
702 B
Nix
Raw Normal View History

2023-02-20 17:47:48 +00:00
{ pkgs, modulesPath, ... }:
2022-07-30 16:19:49 +00:00
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot = {
loader.grub.device = "/dev/sda";
initrd = {
availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" ];
2023-03-07 07:41:57 +00:00
kernelModules = [ "nvme" "tls" ];
2022-07-30 16:19:49 +00:00
};
2022-09-23 11:23:56 +00:00
2023-02-20 17:47:48 +00:00
kernelPackages = pkgs.linuxPackages_latest;
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";
2023-05-14 10:55:29 +00:00
"net.ipv4.tcp_syncookies" = 0;
"net.ipv4.tcp_timestamps" = 1;
"net.ipv4.tcp_window_scaling" = 1;
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"; };
}