home/gui: Guard newer Codex settings option
CI / Check, build and cache nixfiles (push) Successful in 2h42m49s
Update docs / update (push) Successful in 1m20s

Only set `programs.codex.mutableSettings` when Home Manager exposes it.
This fixes evaluation on 26.05, including boxes with the GUI disabled.
Record the removal TODO and guidance for future compatibility guards.
This commit is contained in:
2026-10-19 17:14:21 +01:00
parent 46008cb25a
commit cbe54f7523
2 changed files with 10 additions and 3 deletions
+5 -3
View File
@@ -1,6 +1,6 @@
{ lib, pkgs', pkgs, inputs, config, ... }:
{ lib, pkgs', pkgs, inputs, config, options, ... }:
let
inherit (lib) genAttrs mkIf mkMerge mkForce mapAttrs mkOptionDefault mkDefault optional;
inherit (lib) genAttrs mkIf mkMerge mkForce mapAttrs mkOptionDefault mkDefault optional optionalAttrs;
inherit (lib.my) mkOpt' mkBoolOpt';
inherit (lib.my.c) pubDomain;
@@ -187,10 +187,10 @@ in
};
};
# TODO: Remove mutableSettings guard when Home Manager 26.11 releases; 26.05 lacks it.
codex = {
enable = true;
package = inputs.llm-agents.packages.${pkgs.stdenv.hostPlatform.system}.codex;
mutableSettings = true;
settings.sandbox_workspace_write.network_access = true;
settings.tui = {
status_line = [
@@ -206,6 +206,8 @@ in
];
status_line_use_colors = true;
};
} // optionalAttrs (options.programs.codex ? mutableSettings) {
mutableSettings = true;
};
claude-code = {