From 648b437767b3561b602cef54f6becfdcfcad4128 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sat, 20 Jul 2024 12:21:30 +0100 Subject: [PATCH] dns: use better date for teh serial --- applications/dns/dns.nix | 3 ++- flake.nix | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/applications/dns/dns.nix b/applications/dns/dns.nix index 155cfea..8b4b8b5 100644 --- a/applications/dns/dns.nix +++ b/applications/dns/dns.nix @@ -3,13 +3,14 @@ pkgs, config, nodes, + self, ... }: let name = "dns"; cfg = config.services.skynet."${name}"; # reads that date to a string (will need to be fixed in 2038) - current_date = builtins.currentTime; + current_date = self.lastModified; # this gets a list of all domains we have records for domains = lib.lists.naturalSort ( diff --git a/flake.nix b/flake.nix index 397c1fe..91e8f7b 100644 --- a/flake.nix +++ b/flake.nix @@ -131,7 +131,7 @@ overlays = []; }; specialArgs = { - inherit inputs; + inherit inputs self; }; };