feat(home-manager): add support for tofi (#131)

This commit is contained in:
Henri Sota 2024-04-29 20:15:58 +02:00 committed by GitHub
parent a48e70a316
commit 0260166043
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 60 additions and 3 deletions

View file

@ -639,6 +639,26 @@
},
"version": "a556353d60833367b13739e660d4057a96f2f4fe"
},
"tofi": {
"cargoLocks": null,
"date": "2023-09-30",
"extract": null,
"name": "tofi",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "catppuccin",
"repo": "tofi",
"rev": "2e74ddba0c582b2ca2d9d06f67f5a902c3a093fb",
"sha256": "sha256-XUwixvy2WyfaSRHM8cTnOn8lKv+vbhheDA1Z47ap+Mc=",
"type": "github"
},
"version": "2e74ddba0c582b2ca2d9d06f67f5a902c3a093fb"
},
"yazi": {
"cargoLocks": null,
"date": "2024-02-21",

View file

@ -385,6 +385,18 @@
};
date = "2024-04-21";
};
tofi = {
pname = "tofi";
version = "2e74ddba0c582b2ca2d9d06f67f5a902c3a093fb";
src = fetchFromGitHub {
owner = "catppuccin";
repo = "tofi";
rev = "2e74ddba0c582b2ca2d9d06f67f5a902c3a093fb";
fetchSubmodules = false;
sha256 = "sha256-XUwixvy2WyfaSRHM8cTnOn8lKv+vbhheDA1Z47ap+Mc=";
};
date = "2023-09-30";
};
yazi = {
pname = "yazi";
version = "0846aed69b2a62d29c98e100af0cf55ca729723d";

View file

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

View file

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

View file

@ -62,9 +62,11 @@ in
fish = enable;
foot = enable;
fzf = enable;
git = enable // {
delta = enable;
};
git =
enable
// {
delta = enable;
};
gitui = enable;
# this is enabled by default already, but still
# listing explicitly so we know it's tested
@ -83,6 +85,7 @@ in
starship = enable;
swaylock = enable;
tmux = enable;
tofi = enable;
yazi = enable;
zathura = enable;
zellij = enable;