Fix hybrid mode configuration conflict

🐛 BUG FIX: Resolve foot.ini conflict in hybrid mode

🎯 ISSUE:
- Rich terminal config was generating foot/foot.ini
- Configuration copying was also trying to copy foot/foot.ini
- Result: 'Error installing file outside $HOME' conflict

🔧 SOLUTION:
- Updated terminal-config.nix condition
- Only generate foot.ini when configuration copying is disabled
- Allows hybrid mode to work properly:
  - Hyprland: declarative (overrides)
  - Quickshell: copied files (complex QML)
  - Terminal: copied files (no conflict)

 RESULT:
- Hybrid mode should now build successfully
- No more file installation conflicts
- Best of both worlds: customizable + reliable
This commit is contained in:
Celes Renata
2025-08-09 13:10:32 -07:00
parent cd7e9840fe
commit 671df6cc66
+4 -2
View File
@@ -66,8 +66,10 @@ in
};
};
config = mkIf (config.programs.dots-hyprland.enable && config.programs.dots-hyprland.overrides.footConfig == null) {
# Only generate if no manual override is set
config = mkIf (config.programs.dots-hyprland.enable &&
config.programs.dots-hyprland.overrides.footConfig == null &&
!(config.programs.dots-hyprland.configuration.enable or false)) {
# Only generate if no manual override is set AND configuration copying is disabled
xdg.configFile."foot/foot.ini".text = ''
[main]
term=xterm-256color