bvm-minecraft: init

This commit is contained in:
Luke Granger-Brown 2021-05-24 01:32:58 +00:00
parent 1c08774667
commit ed79fe89bd
6 changed files with 41 additions and 5 deletions

View file

@ -0,0 +1,32 @@
# 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";
}

View file

@ -39,6 +39,7 @@ let
"bvm-prosody" "bvm-prosody"
"bvm-ipfs" "bvm-ipfs"
"bvm-matrix" "bvm-matrix"
"bvm-minecraft"
]; ];
rebuilder = system: (import ./lib/rebuilder.nix (args // { system = system; })); rebuilder = system: (import ./lib/rebuilder.nix (args // { system = system; }));
systemCfgs = lib.genAttrs systems systemCfgs = lib.genAttrs systems

View file

@ -13,7 +13,7 @@ in {
isoImage.isoName = lib.mkForce "nixos-${depot.version}-${pkgs.stdenv.hostPlatform.system}.iso"; isoImage.isoName = lib.mkForce "nixos-${depot.version}-${pkgs.stdenv.hostPlatform.system}.iso";
isoImage.storeContents = [ isoImage.storeContents = [
depot.ops.nixos.systems.bvm-matrix depot.ops.nixos.systems.bvm-minecraft
]; ];
system.stateVersion = "21.05"; system.stateVersion = "21.05";

View file

@ -3,7 +3,7 @@
; SPDX-License-Identifier: Apache-2.0 ; SPDX-License-Identifier: Apache-2.0
; MNAME RNAME SERIAL REFRESH RETRY EXPIRE TTL ; MNAME RNAME SERIAL REFRESH RETRY EXPIRE TTL
@ 600 IN SOA frantech-lux01.as205479.net. hostmaster.lukegb.com. 8 600 450 3600 300 @ 600 IN SOA frantech-lux01.as205479.net. hostmaster.lukegb.com. 9 600 450 3600 300
$INCLUDE tmpl.ns $INCLUDE tmpl.ns
@ -12,6 +12,7 @@ $INCLUDE tmpl.ns
4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR bvm-ipfs.public.as205479.net. 4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR bvm-ipfs.public.as205479.net.
5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR bvm-nixosmgmt.public.as205479.net. 5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR bvm-nixosmgmt.public.as205479.net.
6.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR bvm-matrix.public.as205479.net. 6.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR bvm-matrix.public.as205479.net.
7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR bvm-minecraft.public.as205479.net.
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR gw.public.as205479.net. 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR gw.public.as205479.net.
e.f.f.f.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR blade-paris.public.as205479.net. e.f.f.f.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR blade-paris.public.as205479.net.
f.f.f.f.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR blade-tuvok.public.as205479.net. f.f.f.f.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR blade-tuvok.public.as205479.net.

View file

@ -3,7 +3,7 @@
; SPDX-License-Identifier: Apache-2.0 ; SPDX-License-Identifier: Apache-2.0
; MNAME RNAME SERIAL REFRESH RETRY EXPIRE TTL ; MNAME RNAME SERIAL REFRESH RETRY EXPIRE TTL
@ 600 IN SOA frantech-lux01.as205479.net. hostmaster.lukegb.com. 8 600 450 3600 300 @ 600 IN SOA frantech-lux01.as205479.net. hostmaster.lukegb.com. 9 600 450 3600 300
$INCLUDE tmpl.ns $INCLUDE tmpl.ns
@ -14,7 +14,7 @@ $INCLUDE tmpl.ns
4 600 IN PTR bvm-ipfs.public.as205479.net. 4 600 IN PTR bvm-ipfs.public.as205479.net.
5 600 IN PTR bvm-nixosmgmt.public.as205479.net. 5 600 IN PTR bvm-nixosmgmt.public.as205479.net.
6 600 IN PTR bvm-matrix.public.as205479.net. 6 600 IN PTR bvm-matrix.public.as205479.net.
7 600 IN PTR 92-118-28-7.ptr.as205479.net. 7 600 IN PTR bvm-minecraft.public.as205479.net.
8 600 IN PTR 92-118-28-8.ptr.as205479.net. 8 600 IN PTR 92-118-28-8.ptr.as205479.net.
9 600 IN PTR 92-118-28-9.ptr.as205479.net. 9 600 IN PTR 92-118-28-9.ptr.as205479.net.
10 600 IN PTR 92-118-28-10.ptr.as205479.net. 10 600 IN PTR 92-118-28-10.ptr.as205479.net.

View file

@ -3,7 +3,7 @@
; SPDX-License-Identifier: Apache-2.0 ; SPDX-License-Identifier: Apache-2.0
; MNAME RNAME SERIAL REFRESH RETRY EXPIRE TTL ; MNAME RNAME SERIAL REFRESH RETRY EXPIRE TTL
@ 600 IN SOA frantech-lux01.as205479.net. hostmaster.lukegb.com. 20 600 450 3600 300 @ 600 IN SOA frantech-lux01.as205479.net. hostmaster.lukegb.com. 21 600 450 3600 300
; NB: this are also glue records in Google Domains. ; NB: this are also glue records in Google Domains.
$INCLUDE tmpl.ns $INCLUDE tmpl.ns
@ -133,6 +133,8 @@ bvm-nixosmgmt.public 3600 IN A 92.118.28.5
bvm-nixosmgmt.public 3600 IN AAAA 2a09:a441::5 bvm-nixosmgmt.public 3600 IN AAAA 2a09:a441::5
bvm-matrix.public 3600 IN A 92.118.28.6 bvm-matrix.public 3600 IN A 92.118.28.6
bvm-matrix.public 3600 IN AAAA 2a09:a441::6 bvm-matrix.public 3600 IN AAAA 2a09:a441::6
bvm-minecraft.public 3600 IN A 92.118.28.7
bvm-minecraft.public 3600 IN AAAA 2a09:a441::7
92-118-28-0.ptr 6000 IN A 92.118.28.0 92-118-28-0.ptr 6000 IN A 92.118.28.0
92-118-28-1.ptr 6000 IN A 92.118.28.1 92-118-28-1.ptr 6000 IN A 92.118.28.1