1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

delta: fix wrapper usage condition

This commit is contained in:
Bruno BELANYI 2025-10-20 13:28:56 +00:00 committed by Austin Horstman
parent 0cb746a743
commit 022e7e3f95

View file

@ -81,8 +81,9 @@ in
'';
inherit (cfg.package) meta;
};
hasGitConfig = cfg.enableGitIntegration && config.programs.git.enable;
in
if !cfg.enableGitIntegration && cfg.options != { } then wrappedDelta else cfg.package;
if !hasGitConfig && cfg.options != { } then wrappedDelta else cfg.package;
description = ''
The delta package with configuration wrapper applied.