extract git client configuration
1 file changed, 23 insertions(+), 10 deletions(-)
changed files
M system/settings/programs/base.nix → system/settings/programs/base.nix
@@ -17,15 +17,28 @@ ++ (lib.optionals (stdenv.isLinux) [ psmisc ]); - programs = lib.optionalAttrs (options.programs ? htop) { - htop = { - enable = true; - settings = { - header_margin = 0; - tree_view = true; - hide_userland_threads = true; - hide_kernel_threads = true; + programs = + { } + // (lib.optionalAttrs (options.programs ? git) { + git = { + enable = true; + config = { + advice = { + detachedHead = false; + mergeConflict = false; + }; + }; + }; + }) + // (lib.optionalAttrs (options.programs ? htop) { + htop = { + enable = true; + settings = { + header_margin = 0; + tree_view = true; + hide_userland_threads = true; + hide_kernel_threads = true; + }; }; - }; - }; + }); }