my nixos/home-manager configuration
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(dev): remove unused codex

fully moved to claude code

-58
-57
home-manager/modules/dev/codex.nix
··· 1 - { 2 - config, 3 - pkgs, 4 - lib, 5 - ... 6 - }: 7 - 8 - let 9 - cfg = config.programs.codex; 10 - 11 - nodejsPkg = pkgs.nodejs_22; 12 - 13 - context7ApiKeyPath = config.programs.onepassword-secrets.secretPaths.context7ApiKey; 14 - githubPersonalAccessTokenPath = 15 - config.programs.onepassword-secrets.secretPaths.githubPersonalAccessToken; 16 - 17 - context7Runner = pkgs.writeShellScript "context7-mcp-runner" '' 18 - export PATH="${lib.makeBinPath [ nodejsPkg ]}:$PATH" 19 - export CONTEXT7_API_KEY="$(${pkgs.coreutils}/bin/cat ${context7ApiKeyPath})" 20 - exec "${nodejsPkg}/bin/npx" -y @upstash/context7-mcp 21 - ''; 22 - 23 - githubRunner = pkgs.writeShellScript "github-mcp-runner" '' 24 - export GITHUB_PERSONAL_ACCESS_TOKEN="$(${pkgs.coreutils}/bin/cat ${githubPersonalAccessTokenPath})" 25 - exec "${pkgs.unstable.github-mcp-server}/bin/github-mcp-server" stdio 26 - ''; 27 - in 28 - { 29 - config = lib.mkIf cfg.enable { 30 - programs.codex = { 31 - package = pkgs.unstable.codex; 32 - custom-instructions = '' 33 - You are Codex, an AI coding assistant for this repo. 34 - 35 - - Use the **context7 MCP** for all extended project context (searching, loading, or summarizing files beyond what is directly provided). 36 - - Use the **GitHub MCP** only for **read-only** access (viewing files, branches, commits, PRs, and issues); you cannot modify anything on GitHub. 37 - 38 - Default to: 39 - 40 - - `context7 MCP` for repo context 41 - - `GitHub MCP` for remote read-only context 42 - ''; 43 - settings = { 44 - mcp_servers = { 45 - context7 = { 46 - command = "${context7Runner}"; 47 - args = [ ]; 48 - }; 49 - github = { 50 - command = "${githubRunner}"; 51 - args = [ ]; 52 - }; 53 - }; 54 - }; 55 - }; 56 - }; 57 - }
-1
home-manager/modules/dev/default.nix
··· 35 35 36 36 programs = { 37 37 claude-code.enable = true; 38 - codex.enable = true; 39 38 direnv.enable = true; 40 39 neovim.enable = true; 41 40 git.enable = true;