From d1ed945935179c743aac37496724c50356f57231 Mon Sep 17 00:00:00 2001 From: CDaut Date: Thu, 29 Feb 2024 23:31:15 +0100 Subject: [PATCH] ZSH setup --- configuration.nix | 4 ++++ home.nix | 2 +- programm_configs/zsh.nix | 11 +++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 programm_configs/zsh.nix diff --git a/configuration.nix b/configuration.nix index 1e64596..bddfd63 100644 --- a/configuration.nix +++ b/configuration.nix @@ -65,12 +65,16 @@ # Configure console keymap console.keyMap = "de"; + # enable zsh to allow setting it as a default shell + programs.zsh.enable = true; + # Define a user account. Don't forget to set a password with ‘passwd’. users.users.clemens = { isNormalUser = true; description = "clemens"; initialPassword = "123456"; extraGroups = [ "networkmanager" "wheel" ]; + shell = pkgs.zsh; }; # home manager diff --git a/home.nix b/home.nix index d2b5385..5dc7534 100644 --- a/home.nix +++ b/home.nix @@ -25,12 +25,12 @@ in ./programm_configs/rofi.nix ./programm_configs/i3.nix ./programm_configs/picom.nix + ./programm_configs/zsh.nix ]; # The home.packages option allows you to install Nix packages into your # environment. home.packages = with pkgs; [ - zsh alacritty polybar scrot diff --git a/programm_configs/zsh.nix b/programm_configs/zsh.nix new file mode 100644 index 0000000..e818ea8 --- /dev/null +++ b/programm_configs/zsh.nix @@ -0,0 +1,11 @@ +{ pkgs, ... }: +{ + programs.zsh = { + enable = true; + oh-my-zsh = { + enable = true; + plugins = [ "git" "battery" "docker" "docker-compose" "virtualenv"]; + theme = "agnoster"; + }; + }; +}