feat(home-manager): init gitui module (#98)
This commit is contained in:
parent
4043beb6c7
commit
19256c4539
5 changed files with 57 additions and 0 deletions
|
@ -119,6 +119,26 @@
|
||||||
},
|
},
|
||||||
"version": "0ce27b518e8ead555dec34dd8be3df5bd75cff8e"
|
"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": {
|
"glamour": {
|
||||||
"cargoLocks": null,
|
"cargoLocks": null,
|
||||||
"date": "2024-04-02",
|
"date": "2024-04-02",
|
||||||
|
|
|
@ -73,6 +73,18 @@
|
||||||
};
|
};
|
||||||
date = "2023-11-02";
|
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 = {
|
glamour = {
|
||||||
pname = "glamour";
|
pname = "glamour";
|
||||||
version = "66d7b09325af67b1c5cdb063343e829c04ad7d5f";
|
version = "66d7b09325af67b1c5cdb063343e829c04ad7d5f";
|
||||||
|
|
20
modules/home-manager/gitui.nix
Normal file
20
modules/home-manager/gitui.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -22,6 +22,10 @@ fetch.github = "catppuccin/delta"
|
||||||
src.git = "https://github.com/catppuccin/fish.git"
|
src.git = "https://github.com/catppuccin/fish.git"
|
||||||
fetch.github = "catppuccin/fish"
|
fetch.github = "catppuccin/fish"
|
||||||
|
|
||||||
|
[gitui]
|
||||||
|
src.git = "https://github.com/catppuccin/gitui.git"
|
||||||
|
fetch.github = "catppuccin/gitui"
|
||||||
|
|
||||||
[glamour]
|
[glamour]
|
||||||
src.git = "https://github.com/catppuccin/glamour.git"
|
src.git = "https://github.com/catppuccin/glamour.git"
|
||||||
fetch.github = "catppuccin/glamour"
|
fetch.github = "catppuccin/glamour"
|
||||||
|
|
1
test.nix
1
test.nix
|
@ -61,6 +61,7 @@ in
|
||||||
fish = ctpEnable;
|
fish = ctpEnable;
|
||||||
git.enable = true; # Required for delta
|
git.enable = true; # Required for delta
|
||||||
git.delta = ctpEnable;
|
git.delta = ctpEnable;
|
||||||
|
gitui = ctpEnable;
|
||||||
glamour.catppuccin.enable = true;
|
glamour.catppuccin.enable = true;
|
||||||
helix = ctpEnable;
|
helix = ctpEnable;
|
||||||
home-manager.enable = false;
|
home-manager.enable = false;
|
||||||
|
|
Loading…
Reference in a new issue