From 3fc1c9da86aa11483abb08ae805446a9eace821f Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Wed, 4 Aug 2021 15:59:02 +0200 Subject: [PATCH] core-services-01: add backup repository for VyOS --- machines/core-services-01/backups.nix | 8 ++++++++ machines/core-services-01/configuration.nix | 1 + machines/core-services-01/subZone.nix | 11 ++++++++--- 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 machines/core-services-01/backups.nix diff --git a/machines/core-services-01/backups.nix b/machines/core-services-01/backups.nix new file mode 100644 index 0000000..5ed318d --- /dev/null +++ b/machines/core-services-01/backups.nix @@ -0,0 +1,8 @@ +{ ... }: +{ + users.users.backup = { + isNormalUser = true; + hashedPassword = "$6$5C4F4cz5pWpW0$oYVATIrYMTR8oAR3lWTv1/4agerPcKYJEAPMKyof2oZWMOYST.n8aQKzpFFEwsIybwSa5RJg.mL7fon6RaiSD/"; + home = "/var/lib/backup"; + }; +} diff --git a/machines/core-services-01/configuration.nix b/machines/core-services-01/configuration.nix index 68de60d..466c48a 100644 --- a/machines/core-services-01/configuration.nix +++ b/machines/core-services-01/configuration.nix @@ -18,6 +18,7 @@ ./nginx.nix ./keycloak.nix ./acme-dns.nix + ./backups.nix ./secrets # TODO push to gitea # TODO ./gotify.nix diff --git a/machines/core-services-01/subZone.nix b/machines/core-services-01/subZone.nix index 83e143c..a768f26 100644 --- a/machines/core-services-01/subZone.nix +++ b/machines/core-services-01/subZone.nix @@ -49,15 +49,20 @@ with my.ipv6; # contains { standard, acme } }; internal.subdomains = { - core01 = { - A = [ "10.1.1.20" ]; - }; + # Routers + router01.A = [ "10.1.1.1" ]; + router02.A = [ "10.1.1.2" ]; + + # Hypervisors pve01 = { A = [ "10.1.1.10" ]; subdomains = { idrac.A = [ "10.1.2.20" ]; } // delegateACMEDNSChallenge "7c663a49-151c-4eea-a34f-725ff9f19d41.acme.rz.ens.wtf."; }; + + # Core machines + core01.A = [ "10.1.1.20" ]; }; }; }