nix oncomplete