fmt: organised varibles for deployment

This commit is contained in:
silver 2023-01-18 02:37:16 +00:00
parent 654d45a842
commit 3e942f9b73
3 changed files with 16 additions and 8 deletions

View file

@ -11,9 +11,13 @@
{ pkgs, lib, nodes, ... }: { pkgs, lib, nodes, ... }:
let let
# name of the server, sets teh hostname and record for it
name = "agentjones";
ip_pub = "193.1.99.72"; ip_pub = "193.1.99.72";
ip_priv = "172.20.20.1"; ip_priv = "172.20.20.1";
hostname = "agentjones.skynet.ie"; # hostname = "${name}.skynet.ie";
hostname = ip_pub;
in { in {
imports = [ imports = [
@ -30,7 +34,7 @@ in {
skynet_dns.records = { skynet_dns.records = {
external = [ external = [
"agentjones A ${ip_pub}" "${name} A ${ip_pub}"
]; ];
cname = []; cname = [];
}; };

View file

@ -12,9 +12,12 @@
{ pkgs, lib, nodes, ... }: { pkgs, lib, nodes, ... }:
let let
# name of the server, sets teh hostname and record for it
name = "vendetta";
ip_pub = "193.1.99.120"; ip_pub = "193.1.99.120";
ip_priv = "172.20.20.3"; ip_priv = "172.20.20.3";
# hostname = "vendetta.skynet.ie"; # hostname = "${name}.skynet.ie";
hostname = ip_pub; hostname = ip_pub;
# sets which nameserver it is # sets which nameserver it is
@ -45,7 +48,7 @@ in {
own = { own = {
nameserver = ns; nameserver = ns;
external = [ external = [
"vendetta A ${ip_pub}" "${name} A ${ip_pub}"
"${ns} A ${ip_pub}" "${ns} A ${ip_pub}"
# needs this, temporally # needs this, temporally

View file

@ -12,10 +12,11 @@
{ pkgs, lib, nodes, ... }: { pkgs, lib, nodes, ... }:
let let
# ip_pub = "193.1.99.121"; name = "vigil";
ip_pub = "192.168.1.157";
ip_pub = "193.1.99.121";
ip_priv = "172.20.20.4"; ip_priv = "172.20.20.4";
# hostname = "vigil.skynet.ie"; # hostname = "${name}.skynet.ie";
hostname = ip_pub; hostname = ip_pub;
# sets which nameserver it is # sets which nameserver it is
@ -46,7 +47,7 @@ in {
own = { own = {
nameserver = ns; nameserver = ns;
external = [ external = [
"vigil A ${ip_pub}" "${name} A ${ip_pub}"
"${ns} A ${ip_pub}" "${ns} A ${ip_pub}"
]; ];
cname = [ cname = [