feat(home-manager): init gitui module (#98)

This commit is contained in:
Sophie Forrest 2024-04-10 17:36:06 +12:00 committed by GitHub
parent 4043beb6c7
commit 19256c4539
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 57 additions and 0 deletions

View file

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

View file

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

View file

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

View file

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

View file

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