Files
clw 0aac36b7de fix(ai-cli): install current upstream Codex and Claude releases
- Pin official Codex 0.161.0 and Claude Code 2.1.292 binaries
- Preserve Codex helpers and Claude's NixOS compatibility wrapper
- Add an updater for stable upstream versions and checksums
- Document CLI updates independently of stable NixOS inputs
2026-10-07 18:14:21 +01:00

54 lines
1.5 KiB
Nix

{
description = "Chris's NixOS machines";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
# Only the existing hosts use this for apps previously taken from unstable.
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-hardware = {
url = "github:NixOS/nixos-hardware";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
nixpkgs,
nixpkgs-unstable,
nixos-hardware,
...
}:
{
# Build the CLI packages separately before switching a host.
packages.x86_64-linux = import ./packages/ai-cli.nix {
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
};
};
nixosConfigurations = {
t450s = nixpkgs.lib.nixosSystem {
specialArgs.unstable = import nixpkgs-unstable {
system = "x86_64-linux";
config.allowUnfree = true;
};
modules = [ ./hosts/t450s/configuration.nix ];
};
x1eg2 = nixpkgs.lib.nixosSystem {
specialArgs.unstable = import nixpkgs-unstable {
system = "x86_64-linux";
config.allowUnfree = true;
};
modules = [ ./hosts/x1eg2/configuration.nix ];
};
framework = nixpkgs.lib.nixosSystem {
modules = [
nixos-hardware.nixosModules.framework-11th-gen-intel
./hosts/framework/configuration.nix
];
};
};
};
}