git: always use main email

This commit is contained in:
Casper V. Kristensen 2024-09-02 14:45:56 +02:00
parent da7aff32ae
commit 5f3c944bba
3 changed files with 5 additions and 16 deletions

View file

@ -6,7 +6,6 @@
./hardware.nix ./hardware.nix
./fan.nix ./fan.nix
./fish.nix ./fish.nix
./git.nix
./hosts.nix ./hosts.nix
./programs.nix ./programs.nix
./sway.nix ./sway.nix

View file

@ -1,15 +0,0 @@
{
home-manager,
lib,
...
}: {
home-manager.users.caspervk = {
programs.git = {
userEmail = lib.mkForce "vk@magenta.dk";
aliases = {
# https://docs.gitlab.com/ee/user/project/push_options.html
mr = "push --push-option=merge_request.create --push-option=merge_request.assign='vk'";
};
};
};
}

View file

@ -28,6 +28,11 @@
rebase.autoStash = true; rebase.autoStash = true;
rebase.updateRefs = true; rebase.updateRefs = true;
}; };
aliases = {
# https://docs.gitlab.com/ee/user/project/push_options.html
mr = "push --push-option=merge_request.create --push-option=merge_request.assign='vk'";
};
}; };
}; };
} }