about summary refs log tree commit diff
path: root/hosts/carmel/boot.nix
blob: 5beb31b52bcb56a58d459e66444c72fa5f4291a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ ... }:

{
  boot = {
    loader = {
      systemd-boot = {
        enable = true;
        # see https://www.man7.org/linux/man-pages/man5/loader.conf.5.html
        consoleMode = "max";
      };
      efi.canTouchEfiVariables = true;
      efi.efiSysMountPoint = "/boot/efi";
    };

    kernel.sysctl = {
      "net.ipv4.conf.all.forwarding" = true;
      "net.ipv4.conf.default.forwarding" = true;
      "net.core.default_qdisc" = "fq";
      "net.ipv4.tcp_congestion_control" = "bbr";
    };
  };
}