clean up patched nix