38 lines
958 B
Nix
38 lines
958 B
Nix
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
||
|
#
|
||
|
# SPDX-License-Identifier: Apache-2.0
|
||
|
|
||
|
{ config, depot, lib, pkgs, ... }:
|
||
|
let
|
||
|
inherit (depot.ops) secrets;
|
||
|
in {
|
||
|
imports = [
|
||
|
../lib/bvm.nix
|
||
|
];
|
||
|
|
||
|
# Networking!
|
||
|
networking = {
|
||
|
hostName = "bvm-heptapod";
|
||
|
hostId = "c30784de";
|
||
|
tempAddresses = "disabled";
|
||
|
|
||
|
interfaces.enp1s0 = {
|
||
|
ipv4.addresses = [{ address = "10.100.0.208"; prefixLength = 23; }];
|
||
|
};
|
||
|
interfaces.enp2s0 = {
|
||
|
ipv4.addresses = [{ address = "92.118.28.10"; prefixLength = 24; }];
|
||
|
ipv6.addresses = [{ address = "2a09:a441::10"; prefixLength = 32; }];
|
||
|
};
|
||
|
defaultGateway = { address = "92.118.28.1"; interface = "enp2s0"; };
|
||
|
defaultGateway6 = { address = "2a09:a441::1"; interface = "enp2s0"; };
|
||
|
|
||
|
firewall = {
|
||
|
allowedTCPPorts = [ 80 443 ];
|
||
|
allowedUDPPorts = [ 443 ];
|
||
|
};
|
||
|
};
|
||
|
my.ip.tailscale = "100.94.23.105";
|
||
|
|
||
|
system.stateVersion = "21.11";
|
||
|
}
|