aboutsummaryrefslogtreecommitdiff
path: root/nixos/machine/adm-omnia2.nix
blob: 7673ecf3a4940f0a8babb515b3aaf443ca0a9b13 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
  config,
  lib,
  pkgs,
  ...
}:
with lib; {
  config = {
    cynerd = {
      wifiAP.adm = {
        enable = true;
        ar9287.interface = "wlp2s0";
        qca988x.interface = "wlp1s0";
      };
    };

    networking = {
      vlans = {
        "brlan.guest" = {
          interface = "brlan";
          id = 2; # TODO later use 100
        };
      };
      bridges = {
        brlan.interfaces = ["end2" "lan0" "lan1" "lan2" "lan3" "lan4"];
        brguest.interfaces = ["brlan.guest"];
      };
      interfaces.brlan.ipv4.addresses = [
        {
          address = config.cynerd.hosts.adm.omnia2;
          prefixLength = 24;
        }
      ];
      defaultGateway = config.cynerd.hosts.adm.omnia;
      nameservers = ["1.1.1.1" "8.8.8.8"];
      dhcpcd.allowInterfaces = [];
    };

    # TODO: ubootTools build is broken!
    firmware.environment.enable = false;
  };
}