Deduplicate MCP logic in ai-agents/ai-runtime and replace builtins.pathExists on secrets #275
Labels
No labels
area:authentication
area:flake-utilities
area:performance
area:tbd
host:chaos
host:cosmos
host:electra
host:fleet
host:lena
host:lyra
host:mass-storage
host:media1
host:nimmog-de
host:nova
host:pangolin
host:pangolin-vps
host:phone
host:router
host:vega
investigation
phase:cutover
phase:deploy
phase:mcp
phase:module
phase:packaging
phase:prep
phase:validation
priority:high
priority:medium
project:attic-postgres-lyra-rollout
project:auto-update-reliability
project:auto-update-remediation
project:declarative-purity-cleanup
project:external-review
project:fleet-boundary-cleanup
project:host-facts-refactor
project:lyra-nixos-deploy
project:lyra-service-stack-migration
project:nebula-mesh-network
project:nix-idioms-hygiene
project:nixos-build-deployment-pipeline
project:security-hardening
project:service-stack-migration
project:vega-sillytavern-cutover
project:wiki-rebuild
repo:numtide/flake-utils
repo:numtide/nix-auth
repo:numtide/nixos-passthru-cache
repo:numtide/nix-relay
service:auto-update
service:gitlab
service:hermes
service:mem0
service:nix
service:sillytavern
service:slskd
service:synthseek
service:tdarr
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config#275
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context & Problem
In
modules/profiles/ai-agents.nixandmodules/profiles/ai-runtime.nix:let ... inbindings (Pangolin, Bookstack, Karakeep, Synthseek, Navidrome, KiwiFS token lookups and launchers) are duplicated verbatim between both modules.builtins.pathExistson secret file paths to conditionally enable MCP servers (e.g.builtins.pathExists ../../secrets/karakeep.yaml). In pure flake mode,pathExistsonly sees the Git index and leads to implicit, side-effect-driven configuration toggling rather than declarative option control.ai-agents.niximports server daemon modules (../services/kiwifs.nixand../services/navidrome-mcp.nix) onto AI client machines solely to obtain their client option definitions.Scope
modules/profiles/ai-agents.nixmodules/profiles/ai-runtime.nixmodules/profiles/ai-desktop.nixmodules/services/kiwifs.nixmodules/services/navidrome-mcp.nixImplementation Checklist
builtins.pathExistson secrets files with explicit declarative boolean options (e.g.nixosConfig.mcp.<service>.enableor similar).Completion Criteria
ai-agents.nixandai-runtime.nix.builtins.pathExistscalls on secret paths.nix flake checkpasses.