From 954b965379c88c498fcf039d326f2e21c140b09a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0lkecan=20Bozdo=C4=9Fan?= Date: Mon, 16 Mar 2026 14:57:36 +0300 Subject: [PATCH 1/3] hm.programs.codex: disable MCP servers ... because lazy loading is not possible. --- nix/users/ilkecan/llm/codex.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/users/ilkecan/llm/codex.nix b/nix/users/ilkecan/llm/codex.nix index ca756b4..bfe0fe4 100644 --- a/nix/users/ilkecan/llm/codex.nix +++ b/nix/users/ilkecan/llm/codex.nix @@ -18,7 +18,7 @@ codex = { enable = true; package = pkgs.llm-agents.codex; - enableMcpIntegration = true; + # enableMcpIntegration = true; # disable until lazy loading is implemented https://github.com/openai/codex/issues/9266 settings = { model = "gpt-5.4"; model_reasoning_effort = "xhigh"; From cab32946dabd7f22108b012e83db298289433d3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0lkecan=20Bozdo=C4=9Fan?= Date: Mon, 16 Mar 2026 22:55:44 +0300 Subject: [PATCH 2/3] hm.programs.codex: update settings --- nix/users/ilkecan/llm/codex.nix | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/nix/users/ilkecan/llm/codex.nix b/nix/users/ilkecan/llm/codex.nix index bfe0fe4..afd1340 100644 --- a/nix/users/ilkecan/llm/codex.nix +++ b/nix/users/ilkecan/llm/codex.nix @@ -1,8 +1,14 @@ { + lib, pkgs, ... }: +let + inherit (lib) + getExe + ; +in { home = { sessionVariables = { @@ -21,19 +27,35 @@ # enableMcpIntegration = true; # disable until lazy loading is implemented https://github.com/openai/codex/issues/9266 settings = { model = "gpt-5.4"; - model_reasoning_effort = "xhigh"; - plan_mode_reasoning_effort = "xhigh"; + model_reasoning_effort = "medium"; + plan_mode_reasoning_effort = "high"; personality = "pragmatic"; features = { - guardian_approval = true; + # guardian_approval = true; # to prevent wasting tokens (?) js_repl = true; multi_agent = true; use_linux_sandbox_bwrap = true; }; + notify = [ + (getExe ( + pkgs.writeShellApplication { + name = "codex-notify"; + runtimeInputs = with pkgs; [ + jq + libnotify + ]; + text = '' + thread_id=$(echo "$1" | jq -r '."thread-id"') + last_message=$(echo "$1" | jq -r '."last-assistant-message"') + notify-send "Codex - $thread_id" "$last_message" + ''; + } + )) + ]; + tui = { - theme = "solarized-dark"; status_line = [ "model-with-reasoning" "context-remaining" @@ -51,6 +73,8 @@ "total-input-tokens" "total-output-tokens" ]; + + theme = "solarized-dark"; }; }; }; From 5ee129a1010ce463fa31d13affed19d3f429dce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0lkecan=20Bozdo=C4=9Fan?= Date: Mon, 16 Mar 2026 22:59:16 +0300 Subject: [PATCH 3/3] zellij: replace `Claude` with `Codex` --- .zellij-layout.kdl | 6 ++---- .../ilkecan/utilities/zellij/layouts/code.nix | 17 +++++++---------- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/.zellij-layout.kdl b/.zellij-layout.kdl index e868007..219f4d7 100644 --- a/.zellij-layout.kdl +++ b/.zellij-layout.kdl @@ -39,9 +39,7 @@ layout { pane command="nvim" floating_panes { - pane command="claude" x="10%" y="10%" width="80%" height="80%" { - args "--ide" - } + pane command="codex" x="10%" y="10%" width="80%" height="80%" } pane size=1 borderless=true { @@ -53,7 +51,7 @@ layout { pane command="zsh" floating_panes { - pane command="codex" x="10%" y="10%" width="80%" height="80%" + pane command="zsh" x="10%" y="10%" width="80%" height="80%" } pane size=1 borderless=true { diff --git a/nix/users/ilkecan/utilities/zellij/layouts/code.nix b/nix/users/ilkecan/utilities/zellij/layouts/code.nix index 5a50c5f..d34c7a3 100644 --- a/nix/users/ilkecan/utilities/zellij/layouts/code.nix +++ b/nix/users/ilkecan/utilities/zellij/layouts/code.nix @@ -16,15 +16,12 @@ _children = [ { pane._props.command = "nvim"; } { - floating_panes.pane = { - _props = { - command = "claude"; - x = "10%"; - y = "10%"; - width = "80%"; - height = "80%"; - }; - args = [ "--ide" ]; + floating_panes.pane._props = { + command = "codex"; + x = "10%"; + y = "10%"; + width = "80%"; + height = "80%"; }; } { @@ -49,7 +46,7 @@ { pane._props.command = config.home.defaultShell.meta.mainProgram; } { floating_panes.pane._props = { - command = "codex"; + command = "zsh"; x = "10%"; y = "10%"; width = "80%";