fix: test the new format

This commit is contained in:
silver 2024-07-20 00:51:24 +01:00
parent abdc5b6d50
commit 2a949f8e82
Signed by: silver
GPG key ID: 54E2C71918E93B74
2 changed files with 9 additions and 9 deletions

View file

@ -9,7 +9,7 @@
cfg = config.services.skynet."${name}";
# reads that date to a string (will need to be fixed in 2038)
current_date = lib.readFile "${pkgs.runCommand "timestamp" {} "echo -n `date +%s` > $out"}";
current_date = builtins.currentTime;
# this gets a list of all domains we have records for
domains = lib.lists.naturalSort (
@ -79,7 +79,7 @@
; hostmaster@skynet.ie is an email address that recieves stuff related to dns
@ IN SOA ${nameserver}.skynet.ie. hostmaster.skynet.ie. (
; Serial (YYYYMMDDCC) this has to be updated for each time the record is updated
${current_date}
${toString current_date}
600 ; Refresh (10 minutes)
300 ; Retry (5 minutes)
604800 ; Expire (1 week)
@ -133,7 +133,7 @@
; hostmaster@skynet.ie is an email address that recieves stuff related to dns
@ IN SOA ${nameserver}.skynet.ie. hostmaster.skynet.ie. (
; Serial (YYYYMMDDCC) this has to be updated for each time the record is updated
${current_date}
${toString current_date}
600 ; Refresh (10 minutes)
300 ; Retry (5 minutes)
604800 ; Expire (1 week)
@ -215,7 +215,7 @@
extraConfig = ''
${if_primary_and_owned}
// for bumping the config
// ${current_date}
// ${toString current_date}
'';
# really wish teh nixos config didnt use master/slave
master = cfg.server.primary;