commit b06b8cfcdf48edb6b2c45ed240f7730752074a70
parent 34b5414c1a09f1a34449a232f564687c3c6a9ae1
Author: Francesco Saccone <francesco@francescosaccone.com>
Date: Thu, 27 Mar 2025 16:18:13 +0100
refactor: define ip addresses and then assign them to subdomains
Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>
Diffstat:
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/hosts/server/dns.nix b/hosts/server/dns.nix
@@ -3,8 +3,8 @@ let
ttl = 3600;
in
(
- {
- "@" = {
+ let
+ main = {
ipv4 = "193.108.52.52";
ipv6 = "2001:1600:13:101::16e3";
};
@@ -12,10 +12,12 @@ in
ipv4 = "83.228.193.236";
ipv6 = "2001:1600:13:101::1a12";
};
- ns1 = {
- ipv4 = "193.108.52.52";
- ipv6 = "2001:1600:13:101::16e3";
- };
+ in
+ {
+ "@" = main;
+ inherit git;
+
+ ns1 = main;
}
|> builtins.mapAttrs (
name: