flake/home/applications/git/default.nix
Guanran Wang 4f28266501
dust: libsecret, pam, polkit, ssh, gpg
extremely confusing... it wont auto open keyring for some reason
2024-08-02 06:28:17 +08:00

22 lines
558 B
Nix

{pkgs, ...}: {
programs.git = rec {
enable = true;
package = pkgs.gitFull; # overriding takes forever to compile
delta.enable = true;
userName = "Guanran Wang";
userEmail = "guanran928@outlook.com";
signing.signByDefault = true;
signing.key = "91F97D9ED12639CF";
extraConfig = {
init.defaultBranch = "master";
pull.rebase = true;
push.autoSetupRemote = true;
credential.helper = "${package}/bin/git-credential-libsecret";
};
};
programs.gh.enable = true;
programs.gitui.enable = true;
}