Large module update

This commit is contained in:
Filippo Berto 2021-06-01 22:19:24 +02:00
parent 492ae9d92a
commit a61bfe3c50
18 changed files with 463 additions and 87 deletions

38
modules/zsh.nix Normal file
View file

@ -0,0 +1,38 @@
{ pkgs, ... }:
{
programs.zsh = {
enable = true;
autocd = true;
# plugins = [{
# name = "powerlevel10k";
# src = pkgs.zsh-powerlevel10k;
# file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
# }];
# initExtraBeforeCompInit = ''
# source $HOME/.p10k.zsh
# '';
# localVariables = {
# POWERLEVEL9K_LEFT_PROMPT_ELEMENTS = [ "os_icon" "dir" "vcs" "prompt_char" ];
# POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS = [ "status" "command_execution_time" "background_jobs" "direnv" "nix_shell" "time" "vpn_ip" ]
# };
};
programs.starship = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
settings = {
# format = "[$all](inverted)";
directory.truncation_symbol = "/";
hostname.format = "[$hostname]($style) ";
line_break.disabled = true;
nix_shell.symbol = " ";
python.python_binary = "python3";
status = {
disabled = false;
format = "[$symbol $status]($style) ";
};
username.format = "[$user]($style)@";
};
};
}