mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-12-04 19:46:20 +01:00
dsh rewrites a profile's cordis.patch.yml at runtime, so linking the web profile put GUI state in the checkout and let runtime writes clobber manual edits. Link the stable policy as the $DSH_HOME home layer instead: dsh applies it after every profile and only reads it. The host-plane compaction-basic row is disabled on the web surface and each agent preset owns its own copy, so the top-level override was inert. Drop it; the model contextWindow/maxTokens are the effective knobs. - add home/base/tui/agents/dsh/cordis.patch.yml, linked from default.nix - drop the ~/.dsh/profiles/web link and the tracked web/ profile - keep runtime state and private/local model routes in the profile patch - update the eval test and README
13 lines
362 B
Nix
13 lines
362 B
Nix
{
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
# Out-of-store so repo edits apply without a rebuild (see README.md).
|
|
sharedPatch = "${config.home.homeDirectory}/nix-config/home/base/tui/agents/dsh/cordis.patch.yml";
|
|
in
|
|
{
|
|
# The shared dsh policy, read as $DSH_HOME/cordis.patch.yml.
|
|
home.file.".dsh/cordis.patch.yml".source = config.lib.file.mkOutOfStoreSymlink sharedPatch;
|
|
}
|