Add spawn-successful nix-exec function