Move the fzf config into its own module

This commit is contained in:
Andreas Zweili 2024-02-05 21:17:27 +01:00
parent fa4e86686b
commit a9a4dfd086
5 changed files with 25 additions and 5 deletions

View File

@ -10,11 +10,6 @@
programs = {
bash.enable = true;
home-manager.enable = true;
fzf = {
enable = true;
enableBashIntegration = true;
tmux.enableShellIntegration = true;
};
vim = {
enable = true;
settings = {

View File

@ -9,6 +9,7 @@
./programs/emacs
./programs/email
./programs/evince
./programs/fzf
./programs/git
./programs/hunspell
./programs/keeweb

View File

@ -0,0 +1,22 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.programs.az-fzf;
in
{
options = {
programs.az-fzf.enable = lib.mkEnableOption "My config for fzf.";
};
config = lib.mkIf cfg.enable {
programs.fzf = {
enable = true;
enableBashIntegration = true;
tmux.enableShellIntegration = true;
};
};
}

View File

@ -28,6 +28,7 @@ in
programs = {
az-emacs.enable = true;
az-fzf.enable = true;
az-git.enable = true;
az-hunspell.enable = true;
az-open-port.enable = true;

View File

@ -59,6 +59,7 @@
programs = {
az-ansible.enable = true;
az-emacs.enable = true;
az-fzf.enable = true;
az-git = {
userEmail = "zweili@contria.com";
};