Commit c497249
committed
fix(home-manager): resolve infinite recursion in imports.nix
Move isDarwin evaluation from top-level let binding into the config
section to avoid infinite recursion when evaluating standalone
home-manager configurations.
The issue occurred because:
1. isDarwin = pkgs.stdenv.hostPlatform.isDarwin was evaluated early
2. This required pkgs to be fully evaluated
3. pkgs evaluation required config evaluation
4. config evaluation required foreground.enable
5. foreground.enable tried to use isDarwin
6. Infinite loop
Fix: Inline the pkgs.stdenv.hostPlatform.isDarwin check directly in
the config section where it's used, allowing lazy evaluation.
This fixes the GitHub Actions error:
error: infinite recursion encountered
while evaluating packages.x86_64-linux.static-home1 parent 019bc1d commit c497249
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
54 | | - | |
| 53 | + | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| |||
0 commit comments