refactor(shell): nixify remaining shell config
check / lint (push) Successful in 41s

This commit is contained in:
hektor committed 2026-09-28 20:30:38 +02:00
1 parent b2bd384d0e
commit c6ab46f85c
13 files changed
+155 -159

No files matched your search

+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
];
};
}