mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 02:39:48 +01:00
git: deprecate extraConfig
as string
This commit is contained in:
parent
8ab1d22a82
commit
a28614e65d
1 changed files with 12 additions and 1 deletions
|
@ -161,7 +161,10 @@ in
|
|||
core = { whitespace = "trailing-space,space-before-tab"; };
|
||||
url."ssh://git@host".insteadOf = "otherhost";
|
||||
};
|
||||
description = "Additional configuration to add.";
|
||||
description = ''
|
||||
Additional configuration to add. The use of string values is
|
||||
deprecated and will be removed in the future.
|
||||
'';
|
||||
};
|
||||
|
||||
iniContent = mkOption {
|
||||
|
@ -263,6 +266,14 @@ in
|
|||
})
|
||||
|
||||
(mkIf (lib.isString cfg.extraConfig) {
|
||||
warnings = [
|
||||
''
|
||||
Using programs.git.extraConfig as a string option is
|
||||
deprecated and will be removed in the future. Please
|
||||
change to using it as an attribute set instead.
|
||||
''
|
||||
];
|
||||
|
||||
xdg.configFile."git/config".text = cfg.extraConfig;
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue