mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
refactor: prepare new modules structure
This commit is contained in:
parent
d25e24c15b
commit
bf82970b9e
65 changed files with 94 additions and 94 deletions
44
modules/programs/git.nix
Normal file
44
modules/programs/git.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
gh
|
||||
pre-commit
|
||||
];
|
||||
|
||||
fireproof.home-manager.programs.git = {
|
||||
enable = true;
|
||||
|
||||
userEmail = "nickolaj@fireproof.website";
|
||||
userName = "Nickolaj Jepsen";
|
||||
|
||||
extraConfig = {
|
||||
gpg.format = "ssh";
|
||||
gpg.ssh.program = "op-ssh-sign";
|
||||
push.autosetupremote = "true";
|
||||
pull.rebase = "true";
|
||||
rebase.autosquash = "true";
|
||||
rebase.autoStash = "true";
|
||||
rerere.enabled = true;
|
||||
init.defaultBranch = "main";
|
||||
};
|
||||
|
||||
delta.enable = true;
|
||||
|
||||
aliases = {
|
||||
"fixup" = "!git log -n 50 --pretty=format:'%h %s' --no-merges | ${lib.getExe pkgs.fzf} | cut -c -7 | xargs -o git commit --fixup";
|
||||
};
|
||||
|
||||
includes = [
|
||||
{
|
||||
condition = "hasconfig:remote.*.url:git@github.com:Digital-Udvikling/**";
|
||||
contents = {
|
||||
user.email = "nij@ao.dk";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue