feat(home-manager): add support for gh-dash (#143)
Co-authored-by: seth <getchoo@tuta.io>
This commit is contained in:
parent
6cb150ad30
commit
78a000d06c
5 changed files with 54 additions and 0 deletions
|
@ -199,6 +199,26 @@
|
||||||
},
|
},
|
||||||
"version": "ee5549af72ab78520ac2aa1c671bf5c2d347c8ca"
|
"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": {
|
"gitui": {
|
||||||
"cargoLocks": null,
|
"cargoLocks": null,
|
||||||
"date": "2023-11-13",
|
"date": "2023-11-13",
|
||||||
|
|
|
@ -121,6 +121,18 @@
|
||||||
};
|
};
|
||||||
date = "2024-01-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 = {
|
gitui = {
|
||||||
pname = "gitui";
|
pname = "gitui";
|
||||||
version = "39978362b2c88b636cacd55b65d2f05c45a47eb9";
|
version = "39978362b2c88b636cacd55b65d2f05c45a47eb9";
|
||||||
|
|
17
modules/home-manager/gh-dash.nix
Normal file
17
modules/home-manager/gh-dash.nix
Normal file
|
@ -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);
|
||||||
|
}
|
|
@ -38,6 +38,10 @@ fetch.github = "catppuccin/fish"
|
||||||
src.git = "https://github.com/catppuccin/foot.git"
|
src.git = "https://github.com/catppuccin/foot.git"
|
||||||
fetch.github = "catppuccin/foot"
|
fetch.github = "catppuccin/foot"
|
||||||
|
|
||||||
|
[gh-dash]
|
||||||
|
src.git = "https://github.com/catppuccin/gh-dash.git"
|
||||||
|
fetch.github = "catppuccin/gh-dash"
|
||||||
|
|
||||||
[gitui]
|
[gitui]
|
||||||
src.git = "https://github.com/catppuccin/gitui.git"
|
src.git = "https://github.com/catppuccin/gitui.git"
|
||||||
fetch.github = "catppuccin/gitui"
|
fetch.github = "catppuccin/gitui"
|
||||||
|
|
1
test.nix
1
test.nix
|
@ -62,6 +62,7 @@ in
|
||||||
fish = enable;
|
fish = enable;
|
||||||
foot = enable;
|
foot = enable;
|
||||||
fzf = enable;
|
fzf = enable;
|
||||||
|
gh-dash = enable;
|
||||||
git =
|
git =
|
||||||
enable
|
enable
|
||||||
// {
|
// {
|
||||||
|
|
Loading…
Reference in a new issue