Files
nixos/Droidnix/generated/system/applications/terminal_shell/zsh.nix
T
2026-03-07 23:22:41 +01:00

44 lines
863 B
Nix

{
config,
pkgs,
lib,
user,
inputs,
...
}:
let
zshConfigDir = "${toString config.home-manager.users.${user.name}.xdg.configHome}/zsh";
in
{
home-manager.users.${user.name} = {
programs.zsh = {
enable = true;
enableCompletion = true;
dotDir = zshConfigDir;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
oh-my-zsh = {
enable = true;
theme = "";
plugins = [
"git"
"sudo"
"extract"
"colored-man-pages"
"command-not-found"
"history"
"docker"
"kubectl"
];
};
};
# Set Zsh options (e.g., AUTO_CD) in .zshrc
xdg.configFile."zsh/.zshrc".text = lib.concatStringsSep "\n" [
"setopt AUTO_CD"
"setopt CORRECT"
"setopt INTERACTIVE_COMMENTS"
];
};
}