diff options
Diffstat (limited to 'pkgs/zone-files/default.nix')
-rw-r--r-- | pkgs/zone-files/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/zone-files/default.nix b/pkgs/zone-files/default.nix index 46c76d0..01e0614 100644 --- a/pkgs/zone-files/default.nix +++ b/pkgs/zone-files/default.nix @@ -12,5 +12,9 @@ stdenv.mkDerivation rec { # Rewrite relative include paths sed $out/* -i -e 's,^$INCLUDE \([^/]\),$INCLUDE '$out'/\1,' + + # Substitute serials + now=$(date +%s) + sed $out/* -i -e 's/$serial/'$now'/' ''; } |