Something went wrong. Try again.
NixOS / Nix-darwin / Home Manager dotfiles for my devices
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293{ inputs, self, ...}:{ flake.modules.homeManager.git = { config, pkgs, ... }: { imports = [ self.wrappers.git.install "${inputs.home-manager}/modules/programs/gh.nix" ];
programs.gh = { enable = true; settings = { git_protocol = "ssh"; telemetry = "disabled"; version = "1"; }; extensions = with pkgs; [ gh-actions-lock gh-contribs gh-dash gh-enhance gh-notify gh-skyline gh-stack gh-yule-log ]; };
wrappers = { git = { enable = true; settings.user = { email = config.vcs.email; name = config.vcs.username; }; }; }; };
flake.wrappers = { git = { lib, pkgs, wlib, ... }: { imports = [ wlib.wrapperModules.git ]; settings = { branch.sort = "-committerdate"; column.ui = "auto"; commit.verbose = true; core.excludesFile = pkgs.global-gitignore; credential.helper = lib.getExe pkgs.git-credential-oauth; credential."https://github.com".helper = "${lib.getExe pkgs.gh} auth git-credential"; delta.syntax-theme = "ansi"; diff = { algorithm = "histogram"; renames = true; }; gpg.format = "ssh"; gpg.ssh.program = lib.getExe' pkgs.openssh "ssh-keygen"; help.autocorrect = "prompt"; init.defaultBranch = "trunk"; interactive.diffFilter = "${lib.getExe pkgs.delta} --color-only"; pager = let path = lib.getExe pkgs.custom-delta; in { blame = path; diff = path; log = path; show = path; }; push.autoSetupRemote = true; tag.sort = "version:refname"; # Get username and email from further wrapping }; }; };}