summaryrefslogtreecommitdiff
path: root/machines/renard/devices.nix
blob: e2bf95f96aa056ee32e0595da596d50d00052f60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ ... }:

{
  boot.loader = {
    systemd-boot.enable = true;
    efi.canTouchEfiVariables = true;
  };

  zramSwap = {
    enable = true;
    algorithm = "zstd";
    swapDevices = 1;
    memoryPercent = 50;
  };

  systemd.network = {
    enable = true;
    wait-online.anyInterface = true;

    networks."10-wan" = {
      name = "ens3";
      DHCP = "ipv4";
      address = [ "2a0a:4cc0:c1:ab6b::1" ];
      routes = [ { Gateway = "fe80::1"; } ];
    };
  };
}