39 lines
731 B
Nix
39 lines
731 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
user,
|
|
...
|
|
}:
|
|
{
|
|
home-manager.users.${user.username} = {
|
|
programs.zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
oh-my-zsh = {
|
|
enable = true;
|
|
theme = "";
|
|
plugins = [
|
|
"git"
|
|
"sudo"
|
|
"extract"
|
|
"colored-man-pages"
|
|
"command-not-found"
|
|
"history"
|
|
"docker"
|
|
"kubectl"
|
|
];
|
|
};
|
|
autosuggestion.enable = true;
|
|
syntaxHighlighting.enable = true;
|
|
};
|
|
|
|
# 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"
|
|
];
|
|
};
|
|
}
|