dotfiles/hardware/hosts/mediaserver.nix

47 lines
1 KiB
Nix
Raw Normal View History

2023-04-13 14:45:01 +00:00
{ pkgs, modulesPath, ... }:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
initrd = {
2023-04-18 20:20:26 +00:00
availableKernelModules = [ "ata_piix" "xhci_pci" "ahci" "sd_mod" "sr_mod" ];
2023-04-13 14:45:01 +00:00
kernelModules = [ "tls" ];
};
kernelPackages = pkgs.linuxPackages;
2023-04-13 14:45:01 +00:00
kernelModules = [ "kvm-intel" "tcp_bbr" ];
kernel.sysctl = {
"net.core.default_qdisc" = "fq";
"net.ipv4.tcp_congestion_control" = "bbr";
2023-09-04 10:45:06 +00:00
"net.ipv4.tcp_syncookies" = 1;
2023-05-14 10:55:29 +00:00
"net.ipv4.tcp_timestamps" = 1;
"net.ipv4.tcp_window_scaling" = 1;
2023-09-04 10:45:06 +00:00
"net.ipv4.tcp_fastopen" = 3;
2023-04-13 14:45:01 +00:00
"net.core.rmem_max" = 2500000;
2023-09-04 10:45:06 +00:00
"net.core.wmem_max" = 2500000;
2023-04-13 14:45:01 +00:00
};
};
fileSystems = {
"/" = {
device = "/dev/disk/by-label/NIXROOT";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-label/NIXBOOT";
fsType = "vfat";
};
};
hardware.cpu.intel.updateMicrocode = false;
2023-06-29 09:05:23 +00:00
powerManagement.enable = false;
2023-04-13 14:45:01 +00:00
}