Added fzf module

This commit is contained in:
alejandro-angulo 2024-08-11 19:51:18 -07:00
parent 3303c5a249
commit 96ec7a91c2
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
2 changed files with 20 additions and 5 deletions

View file

@ -8,6 +8,7 @@
programs = {
firefox.enable = true;
fzf.enable = true;
gpg.enable = true;
kitty.enable = true;
zoxide.enable = true;
@ -23,9 +24,4 @@
windowManagers.sway.enable = true;
};
# misc utils without custom config
programs = {
fzf.enable = true;
};
}

View file

@ -0,0 +1,19 @@
{
config,
lib,
namespace,
...
}: let
cfg = config.${namespace}.programs.fzf;
in {
options.${namespace}.programs.fzf = {
enable = lib.mkEnableOption "fzf";
};
config = lib.mkIf cfg.enable {
programs.fzf = {
enable = true;
catppuccin.enable = true;
};
};
}