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

38 lines
879 B
Nix
Raw Normal View History

2023-07-17 00:17:50 +02:00
{ lib, modulesPath, ... }:
2022-08-01 22:39:14 +02:00
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot = {
2022-09-26 15:57:31 +02:00
kernelModules = [ "tcp_bbr" ];
2022-08-02 18:53:06 +02:00
blacklistedKernelModules = [ "rtl2832" "dvb_usb_rtl28xxu" "rtl2832_sdr" ];
2022-09-26 15:57:31 +02:00
kernel.sysctl = {
"net.core.default_qdisc" = "fq";
"net.ipv4.tcp_congestion_control" = "bbr";
2023-05-14 12:55:29 +02:00
"net.ipv4.tcp_syncookies" = 0;
"net.ipv4.tcp_timestamps" = 1;
"net.ipv4.tcp_window_scaling" = 1;
2022-09-26 15:57:31 +02:00
};
2022-08-01 22:39:14 +02:00
};
fileSystems."/" = {
2023-06-26 15:29:32 +02:00
device = "/dev/disk/by-label/NIXOS_SD";
2022-08-01 22:39:14 +02:00
fsType = "ext4";
};
2022-08-18 19:17:14 +02:00
swapDevices = [
{
device = "/var/lib/swapfile";
2022-08-18 20:49:30 +02:00
size = 4096;
2022-08-18 19:17:14 +02:00
}
];
2022-08-01 22:39:14 +02:00
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.eth0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
2023-06-28 23:23:47 +02:00
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
2022-08-01 22:39:14 +02:00
}