Add zsh shell, enable in onizuka

This commit is contained in:
Julia Lange 2024-04-09 15:04:39 -07:00
parent a43df02076
commit 7afb3bd74b
3 changed files with 23 additions and 1 deletions

View file

@ -4,5 +4,6 @@
imports = [
./fish
./xonsh
./zsh
];
}

View file

@ -0,0 +1,20 @@
{ config, pkgs, lib, ... }:
{
options = {
zsh.enable = lib.mkEnableOption "Enables zsh";
zsh.setDefault = lib.mkEnableOption "Sets zsh as the default user's shell";
};
config = lib.mkIf config.zsh.enable {
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestions.enable = true;
histFile = "$HOME/.config/zsh/history";
histSize = 2000;
};
users.users.defaultUser.shell = lib.mkIf config.zsh.setDefault pkgs.zsh;
environment.shells = with pkgs; [ zsh ];
};
}

View file

@ -20,7 +20,8 @@
hyprland.enable = true;
librewolf.enable = true;
xonsh.enable = true;
zsh.enable = true;
zsh.setDefault = true;
syncthing.enable = true;
steam.enable = true;