44 lines
1 KiB
Nix
44 lines
1 KiB
Nix
{ lib, modulesPath, ... }:
|
|
|
|
{
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
|
|
|
boot = {
|
|
initrd = {
|
|
availableKernelModules = [ "usbhid" ];
|
|
kernelModules = [ ];
|
|
};
|
|
|
|
#kernelPackages = pkgs.linuxKernel.packages.linux_rpi3;
|
|
kernelModules = [ "tcp_bbr" ];
|
|
|
|
extraModulePackages = [ ];
|
|
blacklistedKernelModules = [ "rtl2832" "dvb_usb_rtl28xxu" "rtl2832_sdr" ];
|
|
|
|
kernel.sysctl = {
|
|
"net.core.default_qdisc" = "fq";
|
|
"net.ipv4.tcp_congestion_control" = "bbr";
|
|
"net.ipv4.tcp_syncookies" = 0;
|
|
"net.ipv4.tcp_timestamps" = 1;
|
|
"net.ipv4.tcp_window_scaling" = 1;
|
|
};
|
|
};
|
|
|
|
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;
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
|
}
|