nixos: Use codex-cli-nix and claude-code-nix flakes with cachix

Switch from manual version overrides to dedicated flakes:
- github:sadjow/codex-cli-nix for codex
- github:sadjow/claude-code-nix for claude-code

Added cachix substituters and keys for pre-built binaries.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-31 21:45:25 -08:00
parent 89ce2116cf
commit 9c51555847
4 changed files with 249 additions and 96 deletions

224
nixos/flake.lock generated
View File

@@ -29,7 +29,7 @@
"railbird-secrets",
"nixpkgs"
],
"systems": "systems_9"
"systems": "systems_11"
},
"locked": {
"lastModified": 1707830867,
@@ -78,6 +78,48 @@
"type": "github"
}
},
"claude-code-nix": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1769893338,
"narHash": "sha256-iRRaY8dnowvXl+nQRVItRtYgAIIUbz3VZnHRYZ0OzEY=",
"owner": "sadjow",
"repo": "claude-code-nix",
"rev": "babe8eef56e4f9fc5f27a00fda501cdd0b9deb5a",
"type": "github"
},
"original": {
"owner": "sadjow",
"repo": "claude-code-nix",
"type": "github"
}
},
"codex-cli-nix": {
"inputs": {
"flake-utils": "flake-utils_2",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1769843659,
"narHash": "sha256-yXQW0oxP7MZDa+0DYx21YyI3CNFF8aMZ43ZFI+GX7wU=",
"owner": "sadjow",
"repo": "codex-cli-nix",
"rev": "b9be52a99de5fa512a58eb616b8e8d763eab0b14",
"type": "github"
},
"original": {
"owner": "sadjow",
"repo": "codex-cli-nix",
"type": "github"
}
},
"darwin": {
"inputs": {
"nixpkgs": [
@@ -345,9 +387,7 @@
},
"flake-utils": {
"inputs": {
"systems": [
"systems"
]
"systems": "systems_2"
},
"locked": {
"lastModified": 1731533236,
@@ -365,7 +405,43 @@
},
"flake-utils_10": {
"inputs": {
"systems": "systems_13"
"systems": "systems_12"
},
"locked": {
"lastModified": 1709126324,
"narHash": "sha256-q6EQdSeUZOG26WelxqkmR7kArjgWCdw5sfJVHPH/7j8=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "d465f4819400de7c8d874d50b982301f28a84605",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_11": {
"inputs": {
"systems": "systems_14"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_12": {
"inputs": {
"systems": "systems_15"
},
"locked": {
"lastModified": 1685518550,
@@ -381,9 +457,9 @@
"type": "github"
}
},
"flake-utils_11": {
"flake-utils_13": {
"inputs": {
"systems": "systems_14"
"systems": "systems_16"
},
"locked": {
"lastModified": 1681202837,
@@ -419,7 +495,9 @@
},
"flake-utils_3": {
"inputs": {
"systems": "systems_4"
"systems": [
"systems"
]
},
"locked": {
"lastModified": 1731533236,
@@ -458,11 +536,11 @@
"systems": "systems_6"
},
"locked": {
"lastModified": 1685518550,
"narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=",
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
@@ -493,6 +571,24 @@
"inputs": {
"systems": "systems_8"
},
"locked": {
"lastModified": 1685518550,
"narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_8": {
"inputs": {
"systems": "systems_9"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
@@ -507,34 +603,16 @@
"type": "github"
}
},
"flake-utils_8": {
"flake-utils_9": {
"inputs": {
"systems": "systems_10"
},
"locked": {
"lastModified": 1709126324,
"narHash": "sha256-q6EQdSeUZOG26WelxqkmR7kArjgWCdw5sfJVHPH/7j8=",
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "d465f4819400de7c8d874d50b982301f28a84605",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_9": {
"inputs": {
"systems": "systems_12"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
@@ -685,7 +763,7 @@
},
"git-sync-rs": {
"inputs": {
"flake-utils": "flake-utils_7",
"flake-utils": "flake-utils_9",
"nixpkgs": [
"org-agenda-api",
"nixpkgs"
@@ -1036,7 +1114,7 @@
"haskell-language-server": {
"inputs": {
"flake-compat": "flake-compat_5",
"flake-utils": "flake-utils_5",
"flake-utils": "flake-utils_7",
"fourmolu-011": "fourmolu-011",
"fourmolu-012": "fourmolu-012",
"gitignore": "gitignore_3",
@@ -1071,7 +1149,7 @@
"haskell-language-server_2": {
"inputs": {
"flake-compat": "flake-compat_6",
"flake-utils": "flake-utils_10",
"flake-utils": "flake-utils_12",
"fourmolu-011": "fourmolu-011_2",
"fourmolu-012": "fourmolu-012_2",
"gitignore": "gitignore_4",
@@ -1382,7 +1460,7 @@
"hyprwire": "hyprwire",
"nixpkgs": "nixpkgs_2",
"pre-commit-hooks": "pre-commit-hooks",
"systems": "systems_2",
"systems": "systems_4",
"xdph": "xdph"
},
"locked": {
@@ -1635,7 +1713,7 @@
},
"imalison-taffybar": {
"inputs": {
"flake-utils": "flake-utils_2",
"flake-utils": "flake-utils_4",
"nixpkgs": "nixpkgs_3",
"taffybar": "taffybar",
"xmonad": "xmonad"
@@ -2195,7 +2273,7 @@
"org-agenda-api": {
"inputs": {
"emacs-overlay": "emacs-overlay",
"flake-utils": "flake-utils_6",
"flake-utils": "flake-utils_8",
"git-sync-rs": "git-sync-rs",
"mova": "mova",
"nixpkgs": [
@@ -2377,7 +2455,7 @@
"railbird-secrets": {
"inputs": {
"agenix": "agenix_2",
"flake-utils": "flake-utils_8",
"flake-utils": "flake-utils_10",
"nixpkgs": "nixpkgs_15"
},
"locked": {
@@ -2397,7 +2475,9 @@
"root": {
"inputs": {
"agenix": "agenix",
"flake-utils": "flake-utils",
"claude-code-nix": "claude-code-nix",
"codex-cli-nix": "codex-cli-nix",
"flake-utils": "flake-utils_3",
"git-ignore-nix": "git-ignore-nix",
"gtk-sni-tray": "gtk-sni-tray",
"gtk-strut": "gtk-strut_2",
@@ -2415,7 +2495,7 @@
"org-agenda-api": "org-agenda-api",
"railbird-secrets": "railbird-secrets",
"status-notifier-item": "status-notifier-item_2",
"systems": "systems_11",
"systems": "systems_13",
"taffybar": "taffybar_2",
"vscode-server": "vscode-server",
"xmonad": "xmonad_3",
@@ -2625,18 +2705,48 @@
"type": "github"
}
},
"systems_2": {
"systems_15": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"repo": "default",
"type": "github"
}
},
"systems_16": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
@@ -2657,16 +2767,16 @@
},
"systems_4": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"repo": "default-linux",
"type": "github"
}
},
@@ -2747,7 +2857,7 @@
},
"taffybar": {
"inputs": {
"flake-utils": "flake-utils_3",
"flake-utils": "flake-utils_5",
"gtk-sni-tray": "gtk-sni-tray_2",
"gtk-strut": "gtk-strut_3",
"nixpkgs": [
@@ -2778,7 +2888,7 @@
},
"taffybar_2": {
"inputs": {
"flake-utils": "flake-utils_9",
"flake-utils": "flake-utils_11",
"git-ignore-nix": "git-ignore-nix_3",
"gtk-sni-tray": "gtk-sni-tray_3",
"gtk-strut": "gtk-strut_4",
@@ -2854,7 +2964,7 @@
},
"vscode-server": {
"inputs": {
"flake-utils": "flake-utils_11",
"flake-utils": "flake-utils_13",
"nixpkgs": "nixpkgs_17"
},
"locked": {
@@ -2937,7 +3047,7 @@
},
"xmonad": {
"inputs": {
"flake-utils": "flake-utils_4",
"flake-utils": "flake-utils_6",
"git-ignore-nix": "git-ignore-nix_2",
"nixpkgs": "nixpkgs_6",
"unstable": "unstable"