refactor: streamline core modules into dedicated folder
This commit is contained in:
parent
b429e6468f
commit
01bcc9ecad
12 changed files with 27 additions and 28 deletions
34
modules/core/zsh.nix
Normal file
34
modules/core/zsh.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ lib, pkgs, ... }:
|
||||
{
|
||||
programs.command-not-found.enable = false;
|
||||
programs.nix-index-database.comma.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
# fzf
|
||||
bat
|
||||
duf
|
||||
];
|
||||
programs.fzf = {
|
||||
keybindings = true;
|
||||
};
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
autosuggestions = {
|
||||
enable = true;
|
||||
highlightStyle = "fg=#00bbbb,bold";
|
||||
};
|
||||
|
||||
# don't override agdsn-zsh-config aliases
|
||||
shellAliases = lib.mkForce { };
|
||||
|
||||
shellInit = ''
|
||||
zsh-newuser-install () {}
|
||||
'';
|
||||
interactiveShellInit = ''
|
||||
source ${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh
|
||||
HW_CONF_ALIASES_GIT_AUTHOR_REMINDER=0
|
||||
source ${pkgs.agdsn-zsh-config}/etc/zsh/zshrc
|
||||
'';
|
||||
promptInit = "";
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue