From b8da8338a1bca0c249ba70561bc159616d6bd2e9 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Thu, 7 Sep 2023 00:14:12 +0200 Subject: [PATCH] wip: gh-dash --- users/pbsds/home/default.nix | 1 + users/pbsds/home/profiles/gh-dash.nix | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 users/pbsds/home/profiles/gh-dash.nix diff --git a/users/pbsds/home/default.nix b/users/pbsds/home/default.nix index 4baf242..9ad6245 100644 --- a/users/pbsds/home/default.nix +++ b/users/pbsds/home/default.nix @@ -10,6 +10,7 @@ ./profiles/gtk.nix ./profiles/micro.nix ./profiles/shell.nix + #./profiles/gh-dash.nix ./profiles/ssh.nix ./profiles/tmate.nix ./profiles/update-diff.nix diff --git a/users/pbsds/home/profiles/gh-dash.nix b/users/pbsds/home/profiles/gh-dash.nix new file mode 100644 index 0000000..474063d --- /dev/null +++ b/users/pbsds/home/profiles/gh-dash.nix @@ -0,0 +1,20 @@ +{ pkgs }: +let + ymlFmt = pkgs.formats.yaml { }; +in +{ + + # TODO: switch to programs.gh-dash.enable once in stable + + home.packages = [ pkgs.gh-dash ]; + + programs.gh.extensions = [ pkgs.gh-dash ]; + + xdg.configFile."gh-dash/config.yml".source = ymlFmt.generate "gh-dash-config.yml" { + prSections = [{ + title = "My Pull Requests"; + filters = "is:open author:@me"; + }]; + }; + +}