From 48bae1315ee68a69a9a0fbe66c2ca1bf0ed524e0 Mon Sep 17 00:00:00 2001 From: get Date: Fri, 12 Apr 2024 07:14:10 +0200 Subject: [PATCH] Add git pullRebase option --- modules/cli/git.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/cli/git.nix b/modules/cli/git.nix index 0ce5a4c..f9d4429 100644 --- a/modules/cli/git.nix +++ b/modules/cli/git.nix @@ -31,6 +31,11 @@ in { default = "master"; description = "default git branch"; }; + pullRebase = mkOption { + type = types.bool; + default = false; + description = "git config pull.rebase {pullRebase}"; + }; }; config = mkIf cfg.enable { @@ -56,6 +61,7 @@ in { transfer.fsckobjects = true; fetch.fsckobjects = true; receive.fsckobjects = true; + pull.rebase = cfg.pullRebase; }; }; };