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

{
  boot = {
    loader = {
      systemd-boot = {
        enable = true;
        # see https://www.man7.org/linux/man-pages/man5/loader.conf.5.html
        consoleMode = "max";
      };
      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";
    };
  };
}