mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-29 01:32:37 +01:00
home.sessionVariables writes export NAME="value" without escaping embedded double quotes, so the JSON {"share":"disabled"} reached opencode as the shell word {share:disabled} and failed config parsing. Emit the export with sessionVariablesExtra instead.
22 lines
606 B
Nix
22 lines
606 B
Nix
{
|
|
home.sessionVariables = {
|
|
KIMI_DISABLE_TELEMETRY = "1";
|
|
|
|
PI_TELEMETRY = "0";
|
|
PI_SKIP_VERSION_CHECK = "1";
|
|
|
|
CRUSH_DISABLE_METRICS = "1";
|
|
CRUSH_DISABLE_PROVIDER_AUTO_UPDATE = "1";
|
|
|
|
OPENCODE_DISABLE_AUTOUPDATE = "1";
|
|
};
|
|
|
|
# home.sessionVariables wraps every value in double quotes without escaping
|
|
# them (home-manager's lib.shell.export), which turns JSON like
|
|
# {"share":"disabled"} into the shell word {share:disabled}. Emit the export
|
|
# by hand so the quotes survive.
|
|
home.sessionVariablesExtra = ''
|
|
export OPENCODE_CONFIG_CONTENT='{"share":"disabled"}'
|
|
'';
|
|
}
|