More patchwork for Nix script