rebase when pulling by default
This commit is contained in:
parent
36e35e2e47
commit
fbaf835e0f
1 changed files with 3 additions and 9 deletions
|
@ -1,8 +1,4 @@
|
||||||
{
|
{secrets, ...}: let
|
||||||
pkgs,
|
|
||||||
secrets,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
user = secrets.users;
|
user = secrets.users;
|
||||||
in {
|
in {
|
||||||
programs.git = {
|
programs.git = {
|
||||||
|
@ -10,10 +6,7 @@ in {
|
||||||
diff-so-fancy = {
|
diff-so-fancy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
userEmail =
|
userEmail = user.primary.emailAddress;
|
||||||
if pkgs.stdenv.isLinux
|
|
||||||
then user.primary.emailAddress
|
|
||||||
else user.primary.workEmail;
|
|
||||||
userName = user.primary.realName;
|
userName = user.primary.realName;
|
||||||
signing = {
|
signing = {
|
||||||
key = user.primary.pgpFingerprint;
|
key = user.primary.pgpFingerprint;
|
||||||
|
@ -22,6 +15,7 @@ in {
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
init.defaultBranch = "main";
|
init.defaultBranch = "main";
|
||||||
push.autoSetupRemote = true;
|
push.autoSetupRemote = true;
|
||||||
|
pull.rabase = true;
|
||||||
};
|
};
|
||||||
ignores = ["/.nix" "/.direnv"];
|
ignores = ["/.nix" "/.direnv"];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue