All my system configs and packages in one repo

leah/vcs: add gh & its git credentials integration

pluie.me 23d0fd53 0a2fc899

verified
+14 -1
+14 -1
users/leah/programs/vcs.nix
··· 5 5 }: 6 6 { 7 7 hjem.users.leah.packages = with pkgs; [ 8 + gh 8 9 jujutsu 9 10 difftastic 10 11 watchman ··· 21 22 integrations.difftastic.enable = true; 22 23 23 24 settings = { 25 + advice = { 26 + detachedHead = true; 27 + }; 28 + 24 29 init.defaultBranch = "main"; 25 30 push.autoSetupRemote = true; 26 31 url."https://github.com/".insteadOf = "gh:"; 27 32 gpg.format = "ssh"; 28 33 29 - http.proxy = "http://127.0.0.1:2080"; 34 + # GH integration 35 + credential = 36 + let 37 + github.helper = "!${lib.getExe pkgs.gh} auth git-credential"; 38 + in 39 + { 40 + "https://github.com" = github; 41 + "https://gist.github.com" = github; 42 + }; 30 43 31 44 user = { 32 45 name = "Leah Amelia Chen";