nixos-module/container/dns: remove IFD for obtaining serial
now 100% IFD free
This commit is contained in:
parent
2de02cc5bb
commit
4625eef8cb
|
@ -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" ''
|
||||
|
|
Loading…
Reference in New Issue