From 930754919d6bc5ac87e5091a317e674e6290e85f Mon Sep 17 00:00:00 2001 From: quasigod Date: Thu, 11 Apr 2024 00:41:30 -0400 Subject: [PATCH] feat(home-manager): init yazi module (#101) --- _sources/generated.json | 20 ++++++++++++++++++++ _sources/generated.nix | 12 ++++++++++++ modules/home-manager/yazi.nix | 18 ++++++++++++++++++ nvfetcher.toml | 4 ++++ test.nix | 1 + 5 files changed, 55 insertions(+) create mode 100644 modules/home-manager/yazi.nix diff --git a/_sources/generated.json b/_sources/generated.json index d55972a..fffbf69 100644 --- a/_sources/generated.json +++ b/_sources/generated.json @@ -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", diff --git a/_sources/generated.nix b/_sources/generated.nix index cbec462..abe9cca 100644 --- a/_sources/generated.nix +++ b/_sources/generated.nix @@ -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"; diff --git a/modules/home-manager/yazi.nix b/modules/home-manager/yazi.nix new file mode 100644 index 0000000..245a597 --- /dev/null +++ b/modules/home-manager/yazi.nix @@ -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"; + }; +} diff --git a/nvfetcher.toml b/nvfetcher.toml index a200f0d..2b89e54 100644 --- a/nvfetcher.toml +++ b/nvfetcher.toml @@ -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" diff --git a/test.nix b/test.nix index 8525f1d..8d31ab1 100644 --- a/test.nix +++ b/test.nix @@ -75,6 +75,7 @@ in starship = ctpEnable; swaylock = ctpEnable; tmux = ctpEnable; + yazi = ctpEnable; zathura = ctpEnable; };