Skip to content

SecBear/codex-nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codex-nix

Nix flake for OpenAI Codex CLI (the Rust CLI, codex-rs) — an AI coding agent for your terminal.

Packages the latest official pre-built binaries so you can use codex declaratively on NixOS, nix-darwin, and Home Manager without building from source.

Quick Start

nix run github:SecBear/codex-nix -- --version
nix profile install github:SecBear/codex-nix

Using as a Flake Input

{
  inputs.codex-nix.url = "github:SecBear/codex-nix";

  outputs = { nixpkgs, codex-nix, ... }: { ... };
}

nix-darwin / NixOS

{ inputs, pkgs, ... }:
{
  environment.systemPackages = [
    inputs.codex-nix.packages.${pkgs.system}.default
  ];
}

Home Manager

{ inputs, pkgs, ... }:
{
  home.packages = [
    inputs.codex-nix.packages.${pkgs.system}.default
  ];
}

Platforms

Platform Architecture Status
macOS aarch64 (Apple Silicon) Supported
macOS x86_64 Supported
Linux x86_64 Supported
Linux aarch64 Supported

Updates

CI checks for new releases hourly. When a new version is detected, it fetches updated hashes for all platforms, opens a PR, and auto-merges once CI passes.

To update manually:

./scripts/update.sh          # update to latest
./scripts/update.sh --check  # check only
./scripts/update.sh 0.105.0  # specific version

Related

About

Nix flake for OpenAI Codex CLI (codex-rs) — pre-built binaries for NixOS, nix-darwin, and Home Manager

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors