nixos-config/home-manager/modules/fish/default.nix

46 lines
915 B
Nix
Raw Normal View History

2021-11-17 16:32:18 +01:00
{ 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;
};
};
}