Skip to content

Commit

Permalink
feat(home-manager): init yazi module (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
quasigod authored Apr 11, 2024
1 parent 669e0d9 commit 9307549
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 0 deletions.
20 changes: 20 additions & 0 deletions _sources/generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions _sources/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
18 changes: 18 additions & 0 deletions modules/home-manager/yazi.nix
Original file line number Diff line number Diff line change
@@ -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";
};
}
4 changes: 4 additions & 0 deletions nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
1 change: 1 addition & 0 deletions test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ in
starship = ctpEnable;
swaylock = ctpEnable;
tmux = ctpEnable;
yazi = ctpEnable;
zathura = ctpEnable;
};

Expand Down

0 comments on commit 9307549

Please sign in to comment.