refactor(shell): nixify remaining shell config

This commit is contained in:
2026-09-28 20:58:46 +02:00
parent b2bd384d0e
commit 30dfcb6141
20 changed files with 155 additions and 295 deletions
+31
View File
@@ -0,0 +1,31 @@
{
config,
lib,
pkgs,
...
}:
{
options.fzf.enable = lib.mkEnableOption "fzf";
config = lib.mkIf config.fzf.enable {
programs.fzf = {
enable = true;
enableBashIntegration = lib.mkDefault true;
defaultCommand = "rg --files";
defaultOptions = [
"--pointer='❭'"
"--height 10%"
];
fileWidget = {
command = "rg --files";
options = [ "--preview 'bat {} | head -500'" ];
};
};
home.packages = with pkgs; [
ripgrep
bat
];
};
}