1
0
Fork 0
dotfiles/hardware/hosts/adsb-antenna.nix

36 lines
830 B
Nix
Raw Normal View History

2022-08-01 20:39:14 +00:00
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot = {
2022-09-26 13:57:31 +00:00
kernelModules = [ "tcp_bbr" ];
2022-08-02 16:53:06 +00:00
blacklistedKernelModules = [ "rtl2832" "dvb_usb_rtl28xxu" "rtl2832_sdr" ];
2022-09-26 13:57:31 +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-09-26 13:57:31 +00:00
};
2022-08-01 20:39:14 +00:00
};
fileSystems."/" = {
2023-06-26 13:29:32 +00:00
device = "/dev/disk/by-label/NIXOS_SD";
2022-08-01 20:39:14 +00:00
fsType = "ext4";
};
2022-08-18 17:17:14 +00:00
swapDevices = [
{
device = "/var/lib/swapfile";
2022-08-18 18:49:30 +00:00
size = 4096;
2022-08-18 17:17:14 +00:00
}
];
2022-08-01 20:39:14 +00:00
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.eth0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
}