feat(home-manager): add support for tofi (#131)
This commit is contained in:
parent
a48e70a316
commit
0260166043
5 changed files with 60 additions and 3 deletions
|
@ -639,6 +639,26 @@
|
||||||
},
|
},
|
||||||
"version": "a556353d60833367b13739e660d4057a96f2f4fe"
|
"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": {
|
"yazi": {
|
||||||
"cargoLocks": null,
|
"cargoLocks": null,
|
||||||
"date": "2024-02-21",
|
"date": "2024-02-21",
|
||||||
|
|
|
@ -385,6 +385,18 @@
|
||||||
};
|
};
|
||||||
date = "2024-04-21";
|
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 = {
|
yazi = {
|
||||||
pname = "yazi";
|
pname = "yazi";
|
||||||
version = "0846aed69b2a62d29c98e100af0cf55ca729723d";
|
version = "0846aed69b2a62d29c98e100af0cf55ca729723d";
|
||||||
|
|
18
modules/home-manager/tofi.nix
Normal file
18
modules/home-manager/tofi.nix
Normal 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});
|
||||||
|
};
|
||||||
|
}
|
|
@ -126,6 +126,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"
|
||||||
|
|
||||||
|
[tofi]
|
||||||
|
src.git = "https://github.com/catppuccin/tofi.git"
|
||||||
|
fetch.github = "catppuccin/tofi"
|
||||||
|
|
||||||
[yazi]
|
[yazi]
|
||||||
src.git = "https://github.com/catppuccin/yazi.git"
|
src.git = "https://github.com/catppuccin/yazi.git"
|
||||||
fetch.github = "catppuccin/yazi"
|
fetch.github = "catppuccin/yazi"
|
||||||
|
|
5
test.nix
5
test.nix
|
@ -62,7 +62,9 @@ in
|
||||||
fish = enable;
|
fish = enable;
|
||||||
foot = enable;
|
foot = enable;
|
||||||
fzf = enable;
|
fzf = enable;
|
||||||
git = enable // {
|
git =
|
||||||
|
enable
|
||||||
|
// {
|
||||||
delta = enable;
|
delta = enable;
|
||||||
};
|
};
|
||||||
gitui = enable;
|
gitui = enable;
|
||||||
|
@ -83,6 +85,7 @@ in
|
||||||
starship = enable;
|
starship = enable;
|
||||||
swaylock = enable;
|
swaylock = enable;
|
||||||
tmux = enable;
|
tmux = enable;
|
||||||
|
tofi = enable;
|
||||||
yazi = enable;
|
yazi = enable;
|
||||||
zathura = enable;
|
zathura = enable;
|
||||||
zellij = enable;
|
zellij = enable;
|
||||||
|
|
Loading…
Reference in a new issue