From 14420faef58af96e6068ed65d4db0ac72914f60b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Sun, 7 Apr 2024 17:17:38 +0200 Subject: [PATCH] add zsh --- home/jonas.home.nix | 22 +++++++++++++++++++++- hosts/comfy-station/configuration.nix | 3 +++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/home/jonas.home.nix b/home/jonas.home.nix index ff54009..f3c5beb 100644 --- a/home/jonas.home.nix +++ b/home/jonas.home.nix @@ -39,6 +39,7 @@ pkgs.chromium pkgs.nil pkgs.nixpkgs-fmt + pkgs.thefuck ]; # Home Manager is pretty good at managing dotfiles. The primary way to manage @@ -81,7 +82,26 @@ # Git programs.git = { enable = true; - userName = "Jonas Röger"; + userName = "Jonas Röger"; userEmail = "jonas.roeger@tu-dortmund.de"; }; + + # Zsh + programs.zsh = { + enable = true; + enableCompletion = true; + syntaxHighlighting.enable = true; + + shellAliases = { + ll = "ls -l"; + update = "sudo nixos-rebuild switch"; + }; + history.size = 10000; + history.path = "${config.xdg.dataHome}/zsh/history"; + oh-my-zsh = { + enable = true; + plugins = [ "git" "thefuck" ]; + theme = "bureau"; + }; + }; } diff --git a/hosts/comfy-station/configuration.nix b/hosts/comfy-station/configuration.nix index 135c9fd..baa74ce 100644 --- a/hosts/comfy-station/configuration.nix +++ b/hosts/comfy-station/configuration.nix @@ -65,6 +65,9 @@ extraGroups = [ "networkmanager" "wheel" ]; packages = with pkgs; [ ]; }; + users.defaultUserShell = pkgs.zsh; + + programs.zsh.enable = true; # Enable automatic login for the user. services.xserver.displayManager.autoLogin.enable = true;