This repository has been archived on 2024-07-10. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles-nix/nix/systems/bootloader.nix

31 lines
817 B
Nix
Raw Normal View History

2024-03-24 16:15:15 +01:00
{ config, pkgs, ... }: {
# bootloader
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.configurationLimit = 5;
boot.loader.systemd-boot.consoleMode = "max";
# kernel stuff
boot.kernelModules = [ "tcp_bbr" ];
boot.kernelPackages = pkgs.linuxPackages_latest;
# network go brr
boot.kernel.sysctl = {
"net.ipv4.tcp_congestion_control" = "bbr";
};
# make boot pretty
2024-04-03 23:26:46 +02:00
boot.plymouth.enable = true;
boot.kernelParams = [ "quiet" ];
2024-03-24 16:15:15 +01:00
boot.initrd.systemd.enable = true;
# make console pretty
console = {
earlySetup = true;
font = "${pkgs.terminus_font}/share/consolefonts/ter-132n.psf.gz";
keyMap = "us";
packages = with pkgs; [ terminus_font ];
};
}