From a28614e65d2ff0e78fe54ca6ec31cc042f563669 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Fri, 30 Aug 2019 14:50:10 +0200 Subject: [PATCH] git: deprecate `extraConfig` as string --- modules/programs/git.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/modules/programs/git.nix b/modules/programs/git.nix index a3c241bf..370fcbb3 100644 --- a/modules/programs/git.nix +++ b/modules/programs/git.nix @@ -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; })