Skip to content

Commit

Permalink
feat(home-manager): init delta module (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anomalocaridid authored Apr 7, 2024
1 parent 03b95ca commit a3e55e6
Show file tree
Hide file tree
Showing 5 changed files with 62 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 @@ -79,6 +79,26 @@
},
"version": "c6469190f2ecf25f017d6120bf4e050e6b1d17af"
},
"delta": {
"cargoLocks": null,
"date": "2024-03-23",
"extract": null,
"name": "delta",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "catppuccin",
"repo": "delta",
"rev": "765eb17d0268bf07c20ca439771153f8bc79444f",
"sha256": "sha256-GA0n9obZlD0Y2rAbGMjcdJ5I0ij1NEPBFC7rv7J49QI=",
"type": "github"
},
"version": "765eb17d0268bf07c20ca439771153f8bc79444f"
},
"fish": {
"cargoLocks": null,
"date": "2023-11-02",
Expand Down
12 changes: 12 additions & 0 deletions _sources/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@
};
date = "2023-10-07";
};
delta = {
pname = "delta";
version = "765eb17d0268bf07c20ca439771153f8bc79444f";
src = fetchFromGitHub {
owner = "catppuccin";
repo = "delta";
rev = "765eb17d0268bf07c20ca439771153f8bc79444f";
fetchSubmodules = false;
sha256 = "sha256-GA0n9obZlD0Y2rAbGMjcdJ5I0ij1NEPBFC7rv7J49QI=";
};
date = "2024-03-23";
};
fish = {
pname = "fish";
version = "0ce27b518e8ead555dec34dd8be3df5bd75cff8e";
Expand Down
24 changes: 24 additions & 0 deletions modules/home-manager/delta.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ config
, lib
, sources
, ...
}:
let
cfg = config.programs.git.delta.catppuccin;
enable = cfg.enable && config.programs.git.delta.enable;
in
{
options.programs.git.delta.catppuccin =
lib.ctp.mkCatppuccinOpt "catppuccin";

config = lib.mkIf enable {
programs.git = {
includes = [
{
path = "${sources.delta}/catppuccin.gitconfig";
}
];
delta.options.features = "catppuccin-${config.catppuccin.flavour}";
};
};
}
4 changes: 4 additions & 0 deletions nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ fetch.github = "catppuccin/bottom"
src.git = "https://github.com/catppuccin/btop.git"
fetch.github = "catppuccin/btop"

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

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

0 comments on commit a3e55e6

Please sign in to comment.