nixos-module/container/dns: remove IFD for obtaining serial

now 100% IFD free
This commit is contained in:
Astro 2022-03-26 04:07:00 +01:00
parent 2de02cc5bb
commit 4625eef8cb
1 changed files with 1 additions and 8 deletions

View File

@ -1,14 +1,7 @@
{ hostName, config, lib, pkgs, self, ... }:
let
serial =
let
timestamp = toString self.lastModified;
datePkg = pkgs.runCommandLocal "date-${timestamp}" {} ''
date -d @${timestamp} +%Y%m%d%H > $out
'';
in
toString (import datePkg);
serial = builtins.substring 0 10 self.lastModifiedDate;
generateZoneFile = { name, ns, records, dynamic }:
builtins.toFile "${name}.zone" ''