zsh
This commit is contained in:
parent
b3d971a725
commit
48de533483
2 changed files with 42 additions and 1 deletions
|
@ -10,7 +10,8 @@
|
|||
config = {
|
||||
console = {
|
||||
font = "Lat2-Terminus16";
|
||||
keyMap = "us";
|
||||
useXkbConfig = true;
|
||||
earlySetup = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
|
|
|
@ -59,4 +59,44 @@
|
|||
defaultEditor = true;
|
||||
startWithGraphical = true;
|
||||
};
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
environment.shells = with pkgs; [zsh];
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestions = {
|
||||
enable = true;
|
||||
strategy = ["completion"];
|
||||
};
|
||||
|
||||
zsh-autoenv = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
syntaxHighlighting = {
|
||||
enable = true;
|
||||
highlighters = ["main" "brackets" "pattern" "cursor" "regexp" "root" "line"];
|
||||
};
|
||||
|
||||
shellAliases = {
|
||||
ll = "ls -l";
|
||||
update = "sudo nixos-rebuild switch --upgrade";
|
||||
};
|
||||
|
||||
ohMyZsh = {
|
||||
enable = true;
|
||||
plugins = ["git" "direnv" "fzf"];
|
||||
theme = "half-life";
|
||||
};
|
||||
};
|
||||
|
||||
# DirEnv support
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
nix-direnv = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue