diff --git a/.dotbot.conf.yaml b/.dotbot.conf.yaml index c3bca6e..42e5ea2 100644 --- a/.dotbot.conf.yaml +++ b/.dotbot.conf.yaml @@ -5,12 +5,10 @@ - clean: ["~"] - create: - - ~/.config/gh-dash - ~/.config/tmux - link: ~/.config/fish: fish - ~/.config/gh-dash/config.yml: github/gh-dash/config.yml ~/.config/nvim: nvim ~/.config/starship.toml: prompt/starship.toml ~/.config/tmux/tmux-nerd-font-window-name.yml: tmux/tmux-nerd-font-window-name.yml diff --git a/github/gh-dash/config.yml b/github/gh-dash/config.yml deleted file mode 100644 index fd2d86b..0000000 --- a/github/gh-dash/config.yml +++ /dev/null @@ -1,60 +0,0 @@ -prSections: - - title: My Pull Requests - filters: is:open author:@me - - title: Needs My Review - filters: is:open review-requested:@me - - title: Involved - filters: is:open involves:@me -author:@me -issuesSections: - - title: My Issues - filters: is:open author:@me - - title: Assigned - filters: is:open assignee:@me - - title: Involved - filters: is:open involves:@me -author:@me -defaults: - preview: - open: true - width: 50 - prsLimit: 20 - issuesLimit: 20 - view: prs - layout: - prs: - updatedAt: - width: 7 - repo: - width: 15 - author: - width: 15 - assignees: - width: 20 - hidden: true - base: - width: 15 - hidden: true - lines: - width: 16 - issues: - updatedAt: - width: 7 - repo: - width: 15 - creator: - width: 10 - assignees: - width: 20 - hidden: true - refetchIntervalMinutes: 30 -keybindings: - issues: [] - prs: [] -repoPaths: - kogakure/*: ~/Code/GitHub/* - work/*: ~/Code/XING/* -theme: - ui: - table: - showSeparator: true -pager: - diff: "" diff --git a/nix/home/default.nix b/nix/home/default.nix index f6c82ac..8c794a6 100644 --- a/nix/home/default.nix +++ b/nix/home/default.nix @@ -14,6 +14,7 @@ in ./curl ./editorconfig ./gh + ./gh-dash ./git ./gnupg ./hammerspoon diff --git a/nix/home/gh-dash/default.nix b/nix/home/gh-dash/default.nix new file mode 100644 index 0000000..f46f37f --- /dev/null +++ b/nix/home/gh-dash/default.nix @@ -0,0 +1,89 @@ +{ pkgs, ... }: + +{ + programs.gh-dash = { + enable = true; + settings = { + prSections = [ + { + title = "My Pull Requests"; + filters = "is:open author:@me"; + } + { + title = "Needs My Review"; + filters = "is:open review-requested:@me"; + } + { + title = "Involved"; + filters = "is:open involves:@me -author:@me"; + } + ]; + issuesSections = [ + { + title = "My Issues"; + filters = "is:open author:@me"; + } + { + title = "Assigned"; + filters = "is:open assignee:@me"; + } + { + title = "Involved"; + filters = "is:open involves:@me -author:@me"; + } + ]; + defaults = { + preview = { + open = true; + width = 50; + }; + prsLimit = 20; + issuesLimit = 20; + view = "prs"; + layout = { + prs = { + updatedAt.width = 7; + repo.width = 15; + author.width = 15; + assignees = { + width = 20; + hidden = true; + }; + base = { + width = 15; + hidden = true; + }; + lines.width = 16; + }; + issues = { + updatedAt.width = 7; + repo.width = 15; + creator.width = 10; + assignees = { + width = 20; + hidden = true; + }; + }; + }; + refetchIntervalMinutes = 30; + }; + keybindings = { + issues = [ ]; + prs = [ ]; + }; + repoPaths = { + "kogakure/*" = "~/Code/GitHub/*"; + "work/*" = "~/Code/XING/*"; + }; + theme = { + ui.table.showSeparator = true; + }; + pager.diff = ""; + }; + }; + + home.packages = with pkgs; [ + git + gh-dash + ]; +}