feat(home-manager): init yazi module (#101)

This commit is contained in:
quasigod 2024-04-11 00:41:30 -04:00 committed by GitHub
parent 669e0d9e4c
commit 930754919d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 55 additions and 0 deletions

View file

@ -519,6 +519,26 @@
},
"version": "5ed4e8a6a20c928688da268dfcdf460ac9c3cb49"
},
"yazi": {
"cargoLocks": null,
"date": "2024-02-21",
"extract": null,
"name": "yazi",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "catppuccin",
"repo": "yazi",
"rev": "0846aed69b2a62d29c98e100af0cf55ca729723d",
"sha256": "sha256-2T41qWMe++3Qxl9veRNHMeRI3eU4+LAueKTss02gYNk=",
"type": "github"
},
"version": "0846aed69b2a62d29c98e100af0cf55ca729723d"
},
"zathura": {
"cargoLocks": null,
"date": "2024-04-04",

View file

@ -313,6 +313,18 @@
};
date = "2024-03-30";
};
yazi = {
pname = "yazi";
version = "0846aed69b2a62d29c98e100af0cf55ca729723d";
src = fetchFromGitHub {
owner = "catppuccin";
repo = "yazi";
rev = "0846aed69b2a62d29c98e100af0cf55ca729723d";
fetchSubmodules = false;
sha256 = "sha256-2T41qWMe++3Qxl9veRNHMeRI3eU4+LAueKTss02gYNk=";
};
date = "2024-02-21";
};
zathura = {
pname = "zathura";
version = "0adc53028d81bf047461bc61c43a484d11b15220";

View file

@ -0,0 +1,18 @@
{ config
, lib
, sources
, ...
}:
let
inherit (lib) ctp;
cfg = config.programs.yazi.catppuccin;
enable = cfg.enable && config.programs.yazi.enable;
in
{
options.programs.yazi.catppuccin =
ctp.mkCatppuccinOpt "yazi";
config = lib.mkIf enable {
programs.yazi.theme = lib.importTOML "${sources.yazi}/themes/${cfg.flavour}.toml";
};
}

View file

@ -102,6 +102,10 @@ fetch.github = "catppuccin/swaylock"
src.git = "https://github.com/catppuccin/tmux.git"
fetch.github = "catppuccin/tmux"
[yazi]
src.git = "https://github.com/catppuccin/yazi.git"
fetch.github = "catppuccin/yazi"
[zathura]
src.git = "https://github.com/catppuccin/zathura.git"
fetch.github = "catppuccin/zathura"

View file

@ -75,6 +75,7 @@ in
starship = ctpEnable;
swaylock = ctpEnable;
tmux = ctpEnable;
yazi = ctpEnable;
zathura = ctpEnable;
};