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:
parent
0cb746a743
commit
022e7e3f95
1 changed files with 2 additions and 1 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue