feat(home-manager): init yazi module (#101)
This commit is contained in:
parent
669e0d9e4c
commit
930754919d
5 changed files with 55 additions and 0 deletions
|
@ -519,6 +519,26 @@
|
||||||
},
|
},
|
||||||
"version": "5ed4e8a6a20c928688da268dfcdf460ac9c3cb49"
|
"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": {
|
"zathura": {
|
||||||
"cargoLocks": null,
|
"cargoLocks": null,
|
||||||
"date": "2024-04-04",
|
"date": "2024-04-04",
|
||||||
|
|
|
@ -313,6 +313,18 @@
|
||||||
};
|
};
|
||||||
date = "2024-03-30";
|
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 = {
|
zathura = {
|
||||||
pname = "zathura";
|
pname = "zathura";
|
||||||
version = "0adc53028d81bf047461bc61c43a484d11b15220";
|
version = "0adc53028d81bf047461bc61c43a484d11b15220";
|
||||||
|
|
18
modules/home-manager/yazi.nix
Normal file
18
modules/home-manager/yazi.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
|
@ -102,6 +102,10 @@ fetch.github = "catppuccin/swaylock"
|
||||||
src.git = "https://github.com/catppuccin/tmux.git"
|
src.git = "https://github.com/catppuccin/tmux.git"
|
||||||
fetch.github = "catppuccin/tmux"
|
fetch.github = "catppuccin/tmux"
|
||||||
|
|
||||||
|
[yazi]
|
||||||
|
src.git = "https://github.com/catppuccin/yazi.git"
|
||||||
|
fetch.github = "catppuccin/yazi"
|
||||||
|
|
||||||
[zathura]
|
[zathura]
|
||||||
src.git = "https://github.com/catppuccin/zathura.git"
|
src.git = "https://github.com/catppuccin/zathura.git"
|
||||||
fetch.github = "catppuccin/zathura"
|
fetch.github = "catppuccin/zathura"
|
||||||
|
|
1
test.nix
1
test.nix
|
@ -75,6 +75,7 @@ in
|
||||||
starship = ctpEnable;
|
starship = ctpEnable;
|
||||||
swaylock = ctpEnable;
|
swaylock = ctpEnable;
|
||||||
tmux = ctpEnable;
|
tmux = ctpEnable;
|
||||||
|
yazi = ctpEnable;
|
||||||
zathura = ctpEnable;
|
zathura = ctpEnable;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue