Kimi Code Flake
Nix flake for Kimi Code — AI-powered coding assistant CLI by Moonshot AI.
Installation
Try it out
nix run github:Hy4ri/kimicode-flakeNixOS / Home Manager
- Add the flake input:
{
inputs.kimi-code.url = "github:Hy4ri/kimicode-flake";
}- Add the overlay:
nixpkgs.overlays = [ inputs.kimi-code.overlays.default ];- Install the package:
# NixOS
environment.systemPackages = with pkgs; [
kimi-code
];
# Home Manager
home.packages = with pkgs; [
kimi-code
];Project Structure
| File | Purpose | |---|---| | flake.nix | Flake entry point — exposes package and overlay | | package.nix | Derivation — fetches the prebuilt binary and patches it for NixOS | | update-version.sh | CLI tool to update to a new version: ./update-version.sh [version] | | version.json | Version metadata (used by README badge) | | flake.lock | Pinned nixpkgs revision |
Manual Updates
If a new release is out and the auto-update CI hasn't caught it yet:
# Update to latest
./update-version.sh
# Update to a specific version
./update-version.sh 0.15.0The script will: