aboutsummaryrefslogtreecommitdiff
path: root/2024-installfest/switch.nix
blob: fdd76477f2abb2bf9ebc0c4cf228e154b7ac9b97 (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
{
  networking = {
    useNetworkd = true;
    useDHCP = false;
    nftables.enable = true;
  };

  systemd.network = {
    netdevs = {
      "brlan".netdevConfig = {
        Kind = "bridge";
        Name = "brlan";
      };
    };
    networks = {
      "brlan" = {
        matchConfig.Name = "brlan";
        networkConfig = {
          DHCP = "yes";
          IPv6AcceptRA = "yes";
        };
      };
      "lan-brlan" = {
        matchConfig.Name = "lan* end0";
        networkConfig.Bridge = "brlan";
      };
    };
  };
}