aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2024-05-20 19:01:03 +0530
committerAkshay Nair <phenax5@gmail.com>2024-05-20 19:01:03 +0530
commit46d64759838e2d837a3a6f9ef178edacc429deb8 (patch)
treece826646b3783aef9a46b4ada66456091e9a41a1 /modules
parent1399d843a7777e7159c97f18f21ec3bf3f976d64 (diff)
downloadnixos-config-46d64759838e2d837a3a6f9ef178edacc429deb8.tar.gz
nixos-config-46d64759838e2d837a3a6f9ef178edacc429deb8.zip
Adds gh stuff to home-manager
Diffstat (limited to 'modules')
-rw-r--r--modules/git.home.nix52
1 files changed, 51 insertions, 1 deletions
diff --git a/modules/git.home.nix b/modules/git.home.nix
index 05317d9..a304423 100644
--- a/modules/git.home.nix
+++ b/modules/git.home.nix
@@ -1,5 +1,45 @@
{ config, pkgs, ... }:
{
+ programs.gh = {
+ enable = true;
+ extensions = with pkgs; [
+ gh-copilot
+ gh-poi
+ gh-dash
+ gh-notify
+ ];
+ settings = {
+ aliases = {
+ clean-branches = "poi";
+ pv = "pr view";
+ co = "pr checkout";
+ };
+ };
+ };
+
+ programs.gh-dash = {
+ enable = true;
+ settings = {
+ defaults = {
+ preview = {
+ open = true;
+ width = 80;
+ };
+ };
+ pager = { diff = "delta"; };
+ keybindings = {
+ prs = [
+ { key = "m"; command = "echo accident"; }
+ { key = "x"; command = "echo accident"; }
+ { key = "a"; command = "echo accident"; }
+ { key = "A"; command = "echo accident"; }
+ { key = "W"; command = "echo accident"; }
+ { key = "X"; command = "echo accident"; }
+ ];
+ };
+ };
+ };
+
programs.git = {
enable = true;
userEmail = "phenax5@gmail.com";
@@ -15,6 +55,14 @@
aliases = {
ignore = "!gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}; gi";
};
+ delta = {
+ enable = true;
+ options = {
+ navigate = true;
+ side-by-side = true;
+ line-numbers = true;
+ };
+ };
extraConfig = {
color = {
ui = true;
@@ -36,7 +84,9 @@
new = "green bold";
whitespace = "red reverse";
};
- pull = { rebase = false; };
+ pull = {
+ rebase = false;
+ };
};
signing.key = "AAAB13AE8B82A5267C1A35D7E1B701723EA37849";
signing.signByDefault = true;