rebase when pulling by default

This commit is contained in:
Adithya 2023-07-08 14:11:28 +05:30
parent 36e35e2e47
commit fbaf835e0f
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -1,8 +1,4 @@
{
pkgs,
secrets,
...
}: let
{secrets, ...}: let
user = secrets.users;
in {
programs.git = {
@ -10,10 +6,7 @@ in {
diff-so-fancy = {
enable = true;
};
userEmail =
if pkgs.stdenv.isLinux
then user.primary.emailAddress
else user.primary.workEmail;
userEmail = user.primary.emailAddress;
userName = user.primary.realName;
signing = {
key = user.primary.pgpFingerprint;
@ -22,6 +15,7 @@ in {
extraConfig = {
init.defaultBranch = "main";
push.autoSetupRemote = true;
pull.rabase = true;
};
ignores = ["/.nix" "/.direnv"];
};