45 lines
915 B
Nix
45 lines
915 B
Nix
{ pkgs, config, lib, ... }:
|
|
with lib;
|
|
|
|
let cfg = config.eboskma.programs.fish;
|
|
in
|
|
{
|
|
options.eboskma.programs.fish = {
|
|
enable = mkEnableOption "Enable fish shell";
|
|
};
|
|
|
|
config = mkIf (cfg.enable) {
|
|
programs.fish = {
|
|
enable = true;
|
|
|
|
# interactiveShellInit = ''
|
|
# '';
|
|
};
|
|
|
|
programs.starship = {
|
|
enable = true;
|
|
enableFishIntegration = true;
|
|
};
|
|
|
|
programs.fzf = {
|
|
enable = true;
|
|
enableFishIntegration = true;
|
|
changeDirWidgetCommand = "${pkgs.fd}/bin/fd -type d";
|
|
defaultCommand = "${pkgs.fd}/bin/fd -type f";
|
|
defaultOptions = [
|
|
"--cycle"
|
|
"--layout=reverse"
|
|
"--border"
|
|
"--height=90%"
|
|
"--preview-window=wrap"
|
|
"--marker='*'"
|
|
];
|
|
fileWidgetCommand = "${pkgs.fd}/bin/fd -type f";
|
|
};
|
|
|
|
programs.direnv = {
|
|
enable = true;
|
|
nix-direnv.enable = true;
|
|
};
|
|
};
|
|
}
|