From 8f6ae5cfd482f11abc34ed51111f985edcc2e81c Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Mon, 4 Apr 2022 19:11:22 +0000 Subject: [PATCH] bvm-paperless: init --- ops/nixos/bvm-paperless/default.nix | 25 +++++++++++++++++++++ ops/nixos/default.nix | 1 + ops/nixos/lib/coredns/zones/db.as205479.net | 3 ++- 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 ops/nixos/bvm-paperless/default.nix diff --git a/ops/nixos/bvm-paperless/default.nix b/ops/nixos/bvm-paperless/default.nix new file mode 100644 index 0000000000..5e1b896785 --- /dev/null +++ b/ops/nixos/bvm-paperless/default.nix @@ -0,0 +1,25 @@ +# SPDX-FileCopyrightText: 2022 Luke Granger-Brown +# +# SPDX-License-Identifier: Apache-2.0 + +{ depot, pkgs, ... }: +let + inherit (depot.ops) secrets; +in { + imports = [ + ../lib/bvm.nix + ]; + + # Networking! + networking = { + hostName = "bvm-paperless"; + hostId = "c8d6f81f"; + + interfaces.enp1s0 = { + ipv4.addresses = [{ address = "10.100.0.211"; prefixLength = 23; }]; + }; + }; + my.ip.tailscale = "100.85.236.121"; + + system.stateVersion = "22.05"; +} diff --git a/ops/nixos/default.nix b/ops/nixos/default.nix index cca644d3eb..c9a3e24189 100644 --- a/ops/nixos/default.nix +++ b/ops/nixos/default.nix @@ -43,6 +43,7 @@ let "bvm-radius" "bvm-heptapod" "bvm-logger" + "bvm-paperless" ]; rebuilder = system: (import ./lib/rebuilder.nix (args // { system = system; })); systemCfgs = lib.genAttrs systems diff --git a/ops/nixos/lib/coredns/zones/db.as205479.net b/ops/nixos/lib/coredns/zones/db.as205479.net index 21573a9a8a..dd4691fe9c 100644 --- a/ops/nixos/lib/coredns/zones/db.as205479.net +++ b/ops/nixos/lib/coredns/zones/db.as205479.net @@ -3,7 +3,7 @@ ; SPDX-License-Identifier: Apache-2.0 ; MNAME RNAME SERIAL REFRESH RETRY EXPIRE TTL -@ 600 IN SOA frantech-lux01.as205479.net. hostmaster.lukegb.com. 45 600 450 3600 300 +@ 600 IN SOA frantech-lux01.as205479.net. hostmaster.lukegb.com. 46 600 450 3600 300 ; NB: this are also glue records in Google Domains. $INCLUDE tmpl.ns @@ -155,6 +155,7 @@ bvm-radius.blade 3600 IN A 10.100.0.207 bvm-heptapod.blade 3600 IN A 10.100.0.208 bvm-logger.blade 3600 IN A 10.100.0.209 ; bvm-oliver-snipeit.blade 3600 IN A 10.100.0.210 +bvm-paperless.blade 3600 IN A 10.100.0.211 ; services ; ceph-mon: blade-tuvok, blade-janeway, blade-paris