33 lines
775 B
Nix
33 lines
775 B
Nix
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
||
|
#
|
||
|
# SPDX-License-Identifier: Apache-2.0
|
||
|
|
||
|
{ config, depot, pkgs, lib, ... }:
|
||
|
let
|
||
|
inherit (depot.ops) secrets;
|
||
|
in {
|
||
|
imports = [
|
||
|
../lib/bvm.nix
|
||
|
];
|
||
|
|
||
|
# Networking!
|
||
|
networking = {
|
||
|
hostName = "bvm-minecraft";
|
||
|
hostId = "c88be606";
|
||
|
|
||
|
interfaces.enp1s0 = {
|
||
|
ipv4.addresses = [{ address = "92.118.28.7"; prefixLength = 24; }];
|
||
|
ipv6.addresses = [{ address = "2a09:a441::7"; prefixLength = 32; }];
|
||
|
};
|
||
|
defaultGateway = { address = "92.118.28.1"; interface = "enp1s0"; };
|
||
|
defaultGateway6 = { address = "2a09:a441::1"; interface = "enp1s0"; };
|
||
|
|
||
|
firewall.allowedTCPPorts = [
|
||
|
80 443 # HTTP/S
|
||
|
25565 # Minecraft
|
||
|
];
|
||
|
};
|
||
|
|
||
|
system.stateVersion = "21.05";
|
||
|
}
|