From d2db42180d3eabe4ec1b23017fb8383382dee4aa Mon Sep 17 00:00:00 2001 From: servostar Date: Fri, 22 Dec 2023 19:15:45 +0100 Subject: [PATCH] servostar moved to zsh --- users/servostar/user.nix | 37 ++++++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/users/servostar/user.nix b/users/servostar/user.nix index 786db0d..f0cc99f 100644 --- a/users/servostar/user.nix +++ b/users/servostar/user.nix @@ -9,6 +9,8 @@ # # Configuration for user servostar + programs.zsh.enable = true; + # Define a user account. Don't forget to set a password with passwd. users.users.servostar = { isNormalUser = true; @@ -24,8 +26,8 @@ "plugdev" "docker" ]; - # use fish - shell = pkgs.fish; + + shell = pkgs.zsh; # ------------------------------------------------------ # user packages @@ -107,6 +109,10 @@ xournalpp jetbrains-toolbox + + chroma # general purpose syntax highlighter (for ohmyzsh/colorize) + fzf + thefuck ]; }; @@ -184,9 +190,34 @@ ]; }; + programs.zsh = { + enable = true; + shellAliases = { }; + oh-my-zsh = { + enable = true; + plugins = [ + "git" + "thefuck" + "colored-man-pages" + "colorize" + "command-not-found" + "docker" + "docker-compose" + "fzf" + ]; + theme = "robbyrussell"; + }; + enableAutosuggestions = true; + syntaxHighlighting = { + enable = true; + }; + autocd = true; + defaultKeymap = "emacs"; + }; + programs.starship = { enable = true; - enableFishIntegration = true; + enableZshIntegration = true; }; programs.eza = {