feat(home-manager): init delta module (#82)

This commit is contained in:
Anomalocaridid 2024-04-07 05:15:18 -04:00 committed by GitHub
parent 03b95cad3b
commit a3e55e6533
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 62 additions and 0 deletions

View file

@ -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",

View file

@ -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";

View file

@ -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}";
};
};
}

View file

@ -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"

View file

@ -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;