diff --git a/profiles/zsh.nix b/profiles/zsh.nix index 3873b45..fb3c241 100644 --- a/profiles/zsh.nix +++ b/profiles/zsh.nix @@ -15,14 +15,26 @@ export GPG_TTY="$(tty)" export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) gpgconf --launch gpg-agent + if type rg &> /dev/null; then + export FZF_DEFAULT_COMMAND='rg --files' + export FZF_DEFAULT_OPTS='-m --height 50% --border' + fi ''; ohMyZsh = { enable = true; - plugins = [ "git" ]; + plugins = [ + "fzf" + "git" + ]; + theme = "powerlevel9k"; }; promptInit = "source ${pkgs.zsh-powerlevel9k}/share/zsh-powerlevel9k/powerlevel9k.zsh-theme"; }; + environment.systemPackages = with pkgs; [ + fzf + ]; + users.defaultUserShell = pkgs.zsh; # Set the default shell for all users }