Add spawn nix-exec function