From 44ecd71588afe18dd3634ee7533e68ca782e66c5 Mon Sep 17 00:00:00 2001 From: 0xrsydn Date: Mon, 2 Nov 2026 19:45:56 +0700 Subject: [PATCH] fix(pi): force-link agent models.json to avoid home-manager link collision --- modules/home/devtools/ai-tools.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/home/devtools/ai-tools.nix b/modules/home/devtools/ai-tools.nix index cc0a3a8..8d7444e 100644 --- a/modules/home/devtools/ai-tools.nix +++ b/modules/home/devtools/ai-tools.nix @@ -313,6 +313,10 @@ in { ".pi/agent/models.json" = { source = ../../../pi/models.json; + # The repo copy is the source of truth. Older home-manager + # generations linked this file from ...-home-manager-generation/ + # home-files/, which the link-collision check does not recognise. + force = true; }; } (mkIf cfg.piInstructions.enable {