From 7d291572c3732d22f9e1d05a139c12aae781f99e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Boros?= Date: Tue, 8 Sep 2026 04:12:15 +0300 Subject: [PATCH] site-env-update: skip realize+set when profile already current --- nix/packages/site-env.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nix/packages/site-env.nix b/nix/packages/site-env.nix index 8601431d7..b7e80f477 100644 --- a/nix/packages/site-env.nix +++ b/nix/packages/site-env.nix @@ -49,6 +49,7 @@ "$catalog" --region ap-southeast-1 path="$(jq -er --arg s "$system" '.[$s]' "$catalog")" + [[ "$(readlink -f /nix/var/nix/profiles/site)" == "$path" ]] && exit 0 nix-dl "$path" nix-env --profile /nix/var/nix/profiles/site --set "$path" '';