about summary refs log tree commit diff stats
path: root/system/network/default.nix
blob: c93d4e236e06f9245dd78bdf6a37847d26cb1108 (plain) (blame)
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
# vim: ts=2
{config, ...}: {
  systemd.network.netdevs = {
    "tab0" = {
      netdevConfig = {
        Name = "tap0";
        Kind = "tap";
      };
      tapConfig = {
        User = "${config.users.users.soispha.username}";
        Group = "libvirt";
      };
    };
    "br0" = {
      netdevConfig = {
        Name = "br0";
        Kind = "bridge";
      };
    };
  };
  networking.bridges = {
    br1 = {
      interfaces = [
        # TODO don't use hardcoded names
        "enp4s0"
        "tap0"
      ];
    };
  };
}