dotfiles/hardware/hosts/argon.nix

39 lines
908 B
Nix
Raw Normal View History

2023-07-16 22:17:50 +00:00
{ lib, modulesPath, ... }:
2023-06-07 18:40:27 +00:00
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot = {
kernelModules = [ "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-06-07 18:40:27 +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-06-10 18:48:07 +00:00
"net.core.rmem_max" = 2500000;
2023-08-07 19:38:01 +00:00
"net.core.wmem_max" = 2500000;
2023-06-07 18:40:27 +00:00
};
};
fileSystems."/" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
};
swapDevices = [
{
device = "/var/lib/swapfile";
size = 4096;
}
];
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.eth0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
2023-06-28 21:23:47 +00:00
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
2023-06-07 18:40:27 +00:00
}