explicit bridge networking on bolty
This commit is contained in:
parent
01a2edd5b8
commit
9d1c00df96
2 changed files with 20 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
./home-assistant.nix
|
./home-assistant.nix
|
||||||
./influxdb.nix
|
./influxdb.nix
|
||||||
./matrix-server.nix
|
./matrix-server.nix
|
||||||
|
./networking.nix
|
||||||
./nix-store-server.nix
|
./nix-store-server.nix
|
||||||
./print-server.nix
|
./print-server.nix
|
||||||
./real-hardware.nix
|
./real-hardware.nix
|
||||||
|
|
19
nixos/boxes/bolty/networking.nix
Normal file
19
nixos/boxes/bolty/networking.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{ config, pkgs, inputs, lib, ... }: {
|
||||||
|
networking.hostName = "bolty";
|
||||||
|
systemd.network.enable = true;
|
||||||
|
networking.networkmanager.enable = false;
|
||||||
|
systemd.network.netdevs."br0".netdevConfig = {
|
||||||
|
Name = "br0";
|
||||||
|
Kind = "bridge";
|
||||||
|
};
|
||||||
|
systemd.network.networks."br0" = {
|
||||||
|
name = "br0";
|
||||||
|
address = [ "10.0.0.8/24" ];
|
||||||
|
DHCP = "yes";
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.network.networks."eth" = {
|
||||||
|
name = "enp4s0";
|
||||||
|
networkConfig.Bridge = "br0";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue