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

45 lines
975 B
Nix
Raw Normal View History

2023-04-13 14:45:01 +00:00
{ pkgs, modulesPath, ... }:
2023-04-13 19:40:47 +00:00
let
latestKernelPackage = pkgs.linuxPackages_latest;
in
2023-04-13 14:45:01 +00:00
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
initrd = {
2023-04-13 16:08:54 +00:00
availableKernelModules = [ "ata_piix" "xhci_pci" "ahci" "sd_mod" "sr_mod" "virtio_balloon" ];
2023-04-13 14:45:01 +00:00
kernelModules = [ "tls" ];
};
2023-04-13 19:40:47 +00:00
kernelPackages = latestKernelPackage;
2023-04-13 14:45:01 +00:00
kernelModules = [ "kvm-intel" "tcp_bbr" ];
2023-04-13 19:40:47 +00:00
extraModulePackages = [ latestKernelPackage.wireguard ];
2023-04-13 14:45:01 +00:00
kernel.sysctl = {
"net.core.default_qdisc" = "fq";
"net.ipv4.tcp_congestion_control" = "bbr";
"net.core.rmem_max" = 2500000;
};
};
fileSystems = {
"/" = {
device = "/dev/disk/by-label/NIXROOT";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-label/NIXBOOT";
fsType = "vfat";
};
};
hardware.cpu.intel.updateMicrocode = false;
}