From 96ec7a91c2edf0f4b0d12023bc8f6f243610f234 Mon Sep 17 00:00:00 2001 From: alejandro-angulo Date: Sun, 11 Aug 2024 19:51:18 -0700 Subject: [PATCH] Added fzf module --- homes/x86_64-linux/alejandro/default.nix | 6 +----- modules/home/programs/fzf/default.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 modules/home/programs/fzf/default.nix diff --git a/homes/x86_64-linux/alejandro/default.nix b/homes/x86_64-linux/alejandro/default.nix index 7aa377a..9bad8c8 100644 --- a/homes/x86_64-linux/alejandro/default.nix +++ b/homes/x86_64-linux/alejandro/default.nix @@ -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; - }; } diff --git a/modules/home/programs/fzf/default.nix b/modules/home/programs/fzf/default.nix new file mode 100644 index 0000000..bd955e9 --- /dev/null +++ b/modules/home/programs/fzf/default.nix @@ -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; + }; + }; +}