nix rewritelog