Skip to content

Commit

Permalink
feat(home-manager): add support for gh-dash (#143)
Browse files Browse the repository at this point in the history
Co-authored-by: seth <[email protected]>
  • Loading branch information
Lichthagel and getchoo authored Apr 29, 2024
1 parent 6cb150a commit 78a000d
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 0 deletions.
20 changes: 20 additions & 0 deletions _sources/generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,26 @@
},
"version": "ee5549af72ab78520ac2aa1c671bf5c2d347c8ca"
},
"gh-dash": {
"cargoLocks": null,
"date": "2024-04-27",
"extract": null,
"name": "gh-dash",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "catppuccin",
"repo": "gh-dash",
"rev": "cb9fea0b86c300b26f1211079d656d02a7eb2c62",
"sha256": "sha256-IpEkLKXCs7H0SH4UDZy9JMcNQPEg/50f/5SlezdnL80=",
"type": "github"
},
"version": "cb9fea0b86c300b26f1211079d656d02a7eb2c62"
},
"gitui": {
"cargoLocks": null,
"date": "2023-11-13",
Expand Down
12 changes: 12 additions & 0 deletions _sources/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,18 @@
};
date = "2024-01-18";
};
gh-dash = {
pname = "gh-dash";
version = "cb9fea0b86c300b26f1211079d656d02a7eb2c62";
src = fetchFromGitHub {
owner = "catppuccin";
repo = "gh-dash";
rev = "cb9fea0b86c300b26f1211079d656d02a7eb2c62";
fetchSubmodules = false;
sha256 = "sha256-IpEkLKXCs7H0SH4UDZy9JMcNQPEg/50f/5SlezdnL80=";
};
date = "2024-04-27";
};
gitui = {
pname = "gitui";
version = "39978362b2c88b636cacd55b65d2f05c45a47eb9";
Expand Down
17 changes: 17 additions & 0 deletions modules/home-manager/gh-dash.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{ config
, lib
, sources
, ...
}:
let
cfg = config.programs.gh-dash.catppuccin;
enable = cfg.enable && config.programs.gh-dash.enable;
theme = "${sources.gh-dash}/themes/${cfg.flavour}/catppuccin-${cfg.flavour}-${cfg.accent}.yml";
in
{
options.programs.gh-dash.catppuccin = lib.ctp.mkCatppuccinOpt "gh-dash" // {
accent = lib.ctp.mkAccentOpt "gh-dash";
};

config.programs.gh-dash.settings = lib.mkIf enable (lib.ctp.fromYaml theme);
}
4 changes: 4 additions & 0 deletions nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ fetch.github = "catppuccin/fish"
src.git = "https://github.com/catppuccin/foot.git"
fetch.github = "catppuccin/foot"

[gh-dash]
src.git = "https://github.com/catppuccin/gh-dash.git"
fetch.github = "catppuccin/gh-dash"

[gitui]
src.git = "https://github.com/catppuccin/gitui.git"
fetch.github = "catppuccin/gitui"
Expand Down
1 change: 1 addition & 0 deletions test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ in
fish = enable;
foot = enable;
fzf = enable;
gh-dash = enable;
git =
enable
// {
Expand Down

0 comments on commit 78a000d

Please sign in to comment.