aboutsummaryrefslogtreecommitdiff
path: root/nixos/machine/spt-mox.nix
blob: eb304b2064d39fa7d9e14bd3386be4681c9daa6f (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
{ config, lib, pkgs, ... }:

with lib;

{

  config = {
    networking = {
      vlans = {
        "eth0.2" = {
          id = 2;
          interface = "eth0";
        };
      };
      bridges = {
        brlan = {
          interfaces = [
            "eth0" "lan1" "lan2" "lan3" "lan4"
          ];
        };
        brguest = {
          interfaces = [
            "eth0.2"
          ];
        };
      };
      dhcpcd.allowInterfaces = [ "brlan" ];
    };
  };

}