mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
35 lines
996 B
Nix
35 lines
996 B
Nix
{ config, pkgs, lib, ...}:
|
|
with lib; {
|
|
options.elss.zsh.enable = mkEnableOption "Setup systemwide zsh";
|
|
config = {
|
|
environment = {
|
|
shells = [ pkgs.zsh ];
|
|
pathsToLink = [ "/share/zsh/" ];
|
|
sessionVariables = rec {
|
|
XDG_CACHE_HOME = "\${HOME}/.cache";
|
|
XDG_CONFIG_HOME = "\${HOME}/.config";
|
|
XDG_BIN_HOME = "\${HOME}/.local/bin";
|
|
XDG_DATA_HOME = "\${HOME}/.local/share";
|
|
|
|
PATH = [
|
|
"\${XDG_BIN_HOME}"
|
|
];
|
|
};
|
|
};
|
|
programs = {
|
|
zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
enableGlobalCompInit = true;
|
|
autosuggestions.enable = true;
|
|
syntaxHighlighting = {
|
|
enable = true;
|
|
highlighters = [ "main" "brackets" "root" "line" ];
|
|
#styles = { cursor = "standout,underline"; };
|
|
};
|
|
setOptions = [ "auto_pushd" "correct" "nocaseglob" "rcexpandparam" "numericglobsort" "nobeep" "appendhistory" ];
|
|
};
|
|
};
|
|
};
|
|
}
|