Files
gallery-organizer-web/flake.nix
Danilo Reyes 0f5e76ddc9 init
2026-02-07 04:41:52 -06:00

30 lines
782 B
Nix

{
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"
'';
};
});
};
}