{ description = "Dev environment with Codex and CODEX_HOME set to the project root."; inputs = { nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; }; outputs = { self, nixpkgs-unstable }: let systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; forAllSystems = nixpkgs-unstable.lib.genAttrs systems; in { devShells = forAllSystems (system: let pkgs = import nixpkgs-unstable { inherit system; }; in { default = pkgs.mkShell { packages = [ pkgs.codex ]; shellHook = '' export CODEX_HOME="/home/jawz/Development/gallery-organizer-web/.codex" ''; }; }); }; }