mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 13:23:11 +01:00
35 lines
717 B
Nix
35 lines
717 B
Nix
{ pkgs, ... }:
|
|
{
|
|
programs.command-not-found.enable = false;
|
|
environment.systemPackages = with pkgs; [
|
|
fzf
|
|
];
|
|
users.defaultUserShell = pkgs.zsh;
|
|
programs.zsh = {
|
|
enable = true;
|
|
autosuggestions = {
|
|
enable = true;
|
|
highlightStyle = "fg=#00bbbb,bold";
|
|
};
|
|
ohMyZsh = {
|
|
enable = true;
|
|
theme = "risto";
|
|
};
|
|
|
|
shellInit =
|
|
''
|
|
source ${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh
|
|
zsh-newuser-install () {}
|
|
|
|
'';
|
|
|
|
# Hacky way to bind Ctrl+R to fzf. Otherwise it will be overridden
|
|
promptInit =
|
|
''
|
|
source ${pkgs.fzf}/share/fzf/completion.zsh
|
|
source ${pkgs.fzf}/share/fzf/key-bindings.zsh
|
|
'';
|
|
};
|
|
}
|
|
|