From 78a000d06c975d0c9214c65da1957113f71f33c1 Mon Sep 17 00:00:00 2001 From: Jens Gatzweiler Date: Mon, 29 Apr 2024 20:19:40 +0200 Subject: [PATCH] feat(home-manager): add support for gh-dash (#143) Co-authored-by: seth --- _sources/generated.json | 20 ++++++++++++++++++++ _sources/generated.nix | 12 ++++++++++++ modules/home-manager/gh-dash.nix | 17 +++++++++++++++++ nvfetcher.toml | 4 ++++ test.nix | 1 + 5 files changed, 54 insertions(+) create mode 100644 modules/home-manager/gh-dash.nix diff --git a/_sources/generated.json b/_sources/generated.json index 947af68..6eabaf8 100644 --- a/_sources/generated.json +++ b/_sources/generated.json @@ -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", diff --git a/_sources/generated.nix b/_sources/generated.nix index cbfa20d..18fcd1b 100644 --- a/_sources/generated.nix +++ b/_sources/generated.nix @@ -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"; diff --git a/modules/home-manager/gh-dash.nix b/modules/home-manager/gh-dash.nix new file mode 100644 index 0000000..3fcd1e3 --- /dev/null +++ b/modules/home-manager/gh-dash.nix @@ -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); +} diff --git a/nvfetcher.toml b/nvfetcher.toml index 2ddc599..9ca792a 100644 --- a/nvfetcher.toml +++ b/nvfetcher.toml @@ -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" diff --git a/test.nix b/test.nix index fdad4a5..12bb5ca 100644 --- a/test.nix +++ b/test.nix @@ -62,6 +62,7 @@ in fish = enable; foot = enable; fzf = enable; + gh-dash = enable; git = enable // {