mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46: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;
|
inherit (cfg.package) meta;
|
||||||
};
|
};
|
||||||
|
hasGitConfig = cfg.enableGitIntegration && config.programs.git.enable;
|
||||||
in
|
in
|
||||||
if !cfg.enableGitIntegration && cfg.options != { } then wrappedDelta else cfg.package;
|
if !hasGitConfig && cfg.options != { } then wrappedDelta else cfg.package;
|
||||||
description = ''
|
description = ''
|
||||||
The delta package with configuration wrapper applied.
|
The delta package with configuration wrapper applied.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue