Skip to content

Commit

Permalink
feat(home-manager): add support for tofi
Browse files Browse the repository at this point in the history
  • Loading branch information
henrisota committed Apr 27, 2024
1 parent a48e70a commit 145eb4f
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 3 deletions.
20 changes: 20 additions & 0 deletions _sources/generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions _sources/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
18 changes: 18 additions & 0 deletions modules/home-manager/tofi.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.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});
};
}
4 changes: 4 additions & 0 deletions nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 6 additions & 3 deletions test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -83,6 +85,7 @@ in
starship = enable;
swaylock = enable;
tmux = enable;
tofi = enable;
yazi = enable;
zathura = enable;
zellij = enable;
Expand Down

0 comments on commit 145eb4f

Please sign in to comment.