Skip to content

Commit 4cd1daa

Browse files
committed
nix: Switch to the Codex package from nixpkgs; Add lima
1 parent 3731df4 commit 4cd1daa

File tree

2 files changed

+11
-85
lines changed

2 files changed

+11
-85
lines changed

flake.lock

Lines changed: 3 additions & 80 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33

44
inputs = {
55
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
6-
codex.url = "github:openai/codex";
7-
codex.inputs.nixpkgs.follows = "nixpkgs";
86
};
97

108
outputs = {
119
self,
1210
nixpkgs,
13-
codex,
1411
}: let
1512
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
1613
forAllSystems = nixpkgs.lib.genAttrs systems;
@@ -27,7 +24,8 @@
2724
pkgs.goose-cli
2825
pkgs.claude-code
2926
pkgs.gemini-cli
30-
codex.packages.${system}.codex-rs
27+
pkgs.codex
28+
pkgs.opencode
3129
]}:$PATH
3230
exec ruby ${./bin/agent-task} "$@"
3331
'';
@@ -61,6 +59,7 @@
6159
config.allowUnfree = true; # Allow unfree packages like claude-code
6260
};
6361
isLinux = pkgs.stdenv.isLinux;
62+
isDarwin = pkgs.stdenv.isDarwin;
6463
in {
6564
default = pkgs.mkShell {
6665
buildInputs = [
@@ -76,11 +75,15 @@
7675
pkgs.goose-cli # Goose AI coding assistant
7776
pkgs.claude-code # Claude Code - agentic coding tool
7877
pkgs.gemini-cli # Gemini CLI
79-
codex.packages.${system}.codex-rs # OpenAI Codex CLI (native Rust implementation)
78+
pkgs.codex # OpenAI Codex CLI (Rust implementation)
79+
pkgs.opencode # OpenCode AI coding assistant
8080
] ++ pkgs.lib.optionals isLinux [
8181
# Linux-only filesystem utilities for snapshot functionality
8282
pkgs.zfs # ZFS utilities for copy-on-write snapshots
8383
pkgs.btrfs-progs # Btrfs utilities for subvolume snapshots
84+
] ++ pkgs.lib.optionals isDarwin [
85+
# macOS-only VM manager
86+
pkgs.lima # Linux virtual machines on macOS
8487
];
8588

8689
shellHook = ''

0 commit comments

Comments
 (0)