Profpatsch/third_party/overlays/patches/0001-home-environment-fix-compatibility-with-Nix-2.3.patch
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 9abd3b03e08b797ed735b372a36e4f3ae75045ee Mon Sep 17 00:00:00 2001
From: Vincent Ambo <mail@tazj.in>
Date: Thu, 24 Jul 2025 14:20:09 +0200
Subject: [PATCH] home-environment: fix compatibility with Nix 2.3

---
 modules/home-environment.nix | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/home-environment.nix b/modules/home-environment.nix
index 151c103d..ba573483 100644
--- a/modules/home-environment.nix
+++ b/modules/home-environment.nix
@@ -820,14 +820,14 @@ in
           ${lib.optionalString config.home.activationGenerateGcRoot ''
             # Create a temporary GC root to prevent collection during activation.
             trap 'run rm -f $VERBOSE_ARG "$newGenGcPath"' EXIT
-            run --silence nix-store --realise "$newGenPath" --add-root "$newGenGcPath"
+            run --quiet nix-store --realise "$newGenPath" --add-root "$newGenGcPath" --indirect
           ''}
 
           ${activationCmds}
 
           ${lib.optionalString (config.home.activationGenerateGcRoot && !config.uninstall) ''
             # Create the "current generation" GC root.
-            run --silence nix-store --realise "$newGenPath" --add-root "$currentGenGcPath"
+            run --quiet nix-store --realise "$newGenPath" --add-root "$currentGenGcPath" --indirect
 
             if [[ -e "$legacyGenGcPath" ]]; then
               run rm $VERBOSE_ARG "$legacyGenGcPath"
-- 
2.50.0