29 lines
735 B
Nix
29 lines
735 B
Nix
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
||
|
#
|
||
|
# SPDX-License-Identifier: Apache-2.0
|
||
|
|
||
|
{ config, ... }:
|
||
|
{
|
||
|
imports = [
|
||
|
../lib/bvm.nix
|
||
|
];
|
||
|
|
||
|
# Networking!
|
||
|
networking = {
|
||
|
hostName = "bvm-netbox";
|
||
|
hostId = "e70e18a5";
|
||
|
|
||
|
interfaces.enp1s0 = {
|
||
|
ipv4.addresses = [{ address = "10.100.0.206"; prefixLength = 23; }];
|
||
|
};
|
||
|
interfaces.enp6s0 = {
|
||
|
ipv4.addresses = [{ address = "92.118.28.8"; prefixLength = 24; }];
|
||
|
ipv6.addresses = [{ address = "2a09:a441::8"; prefixLength = 32; }];
|
||
|
};
|
||
|
defaultGateway = { address = "92.118.28.1"; interface = "enp6s0"; };
|
||
|
defaultGateway6 = { address = "2a09:a441::1"; interface = "enp6s0"; };
|
||
|
};
|
||
|
|
||
|
system.stateVersion = "21.05";
|
||
|
}
|