Manage git with home-manager
This commit is contained in:
parent
8ed77d3964
commit
eba9eb03f4
|
@ -102,7 +102,6 @@
|
|||
home.packages = with pkgs; [
|
||||
firefox
|
||||
kate
|
||||
git
|
||||
prismlauncher
|
||||
libreoffice-qt
|
||||
|
||||
|
@ -119,6 +118,37 @@
|
|||
];
|
||||
};
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userEmail = "chandler@chandlerswift.com";
|
||||
userName = "Chandler Swift";
|
||||
lfs.enable = true;
|
||||
# TODO: delta or diff-so-fancy or difftastic
|
||||
extraConfig = {
|
||||
init.defaultBranch = "main";
|
||||
pull.ff = "only";
|
||||
#init.templatedir = "~/.git-template"; # unsure what this was intended to do -- default hooks, maybe?
|
||||
#TODO: smtp gives some error. Why? Also, do I need a password?
|
||||
# smtpserver = "smtp.migadu.com";
|
||||
# smtpuser = "chandler@chandlerswift.com";
|
||||
# smtpencryption = "tls";
|
||||
# smtpserverport = 587;
|
||||
url."https://aur.archlinux.org/".insteadOf = "aur:";
|
||||
url."ssh://aur@aur.archlinux.org/".pushInsteadOf = "aur:";
|
||||
url."ssh://git@github.com/ChandlerSwift/".insteadOf = "gh:";
|
||||
push.autoSetupRemote = true;
|
||||
};
|
||||
ignores = [
|
||||
"*.kate-swp"
|
||||
"*.swp"
|
||||
"*~"
|
||||
"\\#*\\#"
|
||||
"venv"
|
||||
];
|
||||
signing.signByDefault = true;
|
||||
signing.key = null; # "let GnuPG decide what signing key to use depending on commit's author"
|
||||
};
|
||||
|
||||
home.stateVersion = "23.11";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue