Skip to content

Commit

Permalink
feat(home-manager): init gitui module (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophie Forrest authored Apr 10, 2024
1 parent 4043beb commit 19256c4
Show file tree
Hide file tree
Showing 5 changed files with 57 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 @@ -119,6 +119,26 @@
},
"version": "0ce27b518e8ead555dec34dd8be3df5bd75cff8e"
},
"gitui": {
"cargoLocks": null,
"date": "2023-11-13",
"extract": null,
"name": "gitui",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "catppuccin",
"repo": "gitui",
"rev": "39978362b2c88b636cacd55b65d2f05c45a47eb9",
"sha256": "sha256-kWaHQ1+uoasT8zXxOxkur+QgZu1wLsOOrP/TL+6cfII=",
"type": "github"
},
"version": "39978362b2c88b636cacd55b65d2f05c45a47eb9"
},
"glamour": {
"cargoLocks": null,
"date": "2024-04-02",
Expand Down
12 changes: 12 additions & 0 deletions _sources/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,18 @@
};
date = "2023-11-02";
};
gitui = {
pname = "gitui";
version = "39978362b2c88b636cacd55b65d2f05c45a47eb9";
src = fetchFromGitHub {
owner = "catppuccin";
repo = "gitui";
rev = "39978362b2c88b636cacd55b65d2f05c45a47eb9";
fetchSubmodules = false;
sha256 = "sha256-kWaHQ1+uoasT8zXxOxkur+QgZu1wLsOOrP/TL+6cfII=";
};
date = "2023-11-13";
};
glamour = {
pname = "glamour";
version = "66d7b09325af67b1c5cdb063343e829c04ad7d5f";
Expand Down
20 changes: 20 additions & 0 deletions modules/home-manager/gitui.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{ config
, lib
, sources
, ...
}:
let
cfg = config.programs.gitui.catppuccin;
enable = cfg.enable && config.programs.gitui.enable;
in
{
options.programs.gitui.catppuccin =
lib.ctp.mkCatppuccinOpt "gitui";

config = lib.mkIf enable {
programs.gitui.theme = builtins.path {
name = "${cfg.flavour}.ron";
path = "${sources.gitui}/theme/${cfg.flavour}.ron";
};
};
}
4 changes: 4 additions & 0 deletions nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ fetch.github = "catppuccin/delta"
src.git = "https://github.com/catppuccin/fish.git"
fetch.github = "catppuccin/fish"

[gitui]
src.git = "https://github.com/catppuccin/gitui.git"
fetch.github = "catppuccin/gitui"

[glamour]
src.git = "https://github.com/catppuccin/glamour.git"
fetch.github = "catppuccin/glamour"
Expand Down
1 change: 1 addition & 0 deletions test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ in
fish = ctpEnable;
git.enable = true; # Required for delta
git.delta = ctpEnable;
gitui = ctpEnable;
glamour.catppuccin.enable = true;
helix = ctpEnable;
home-manager.enable = false;
Expand Down

0 comments on commit 19256c4

Please sign in to comment.