nixos/home-manager-modules/zsh.nix

23 lines
397 B
Nix

{ config, lib, ... }:
let
cfg = config.zsh;
in
{
options = {
zsh.enable = lib.mkEnableOption "enable zsh module";
};
config.programs.zsh = lib.mkIf cfg.enable {
enable = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
oh-my-zsh.enable = true;
oh-my-zsh.theme = "robbyrussell";
oh-my-zsh.plugins = [
"git"
"npm"
];
};
}