nix build: Separate build for docs and api