Files
nix-flake/modules/features/shells/zsh.nix
T
greyweather 81e85743de
Build docs with nix and Material for mkDocs / build-docs (push) Successful in 1m33s
move options to separate modules, set up mkDocs generation
2026-09-01 03:08:10 +01:00

36 lines
1.2 KiB
Nix

{ inputs, self, ... }: {
flake.nixosModules.global = { config, pkgs, lib, ... }: {
config = lib.mkIf (config.features.shells.zsh.enable) {
programs.zsh.enable = true;
home-manager.users.grey = lib.mkIf (config.features.nixos.home-manager.enable) {
features.shells.zsh.enable = lib.mkDefault true;
features.shells.zsh.antidote.enable = lib.mkDefault config.features.shells.zsh.antidote.enable;
};
};
};
flake.homeModules.global = { pkgs, config, lib, ... }: {
config = lib.mkIf (config.features.shells.zsh.enable) {
home.shell.enableZshIntegration = true;
programs.kitty.shellIntegration.enableZshIntegration = true;
programs.zsh = {
enable = true;
completionInit = "";
antidote = lib.mkIf (config.features.shells.zsh.antidote.enable) {
enable = true;
plugins = [
"getantidote/use-omz"
"ohmyzsh/ohmyzsh path:lib"
"ohmyzsh/ohmyzsh path:plugins/command-not-found"
"ohmyzsh/ohmyzsh path:themes/nanotech.zsh-theme"
"zsh-users/zsh-autosuggestions"
"zdharma-continuum/fast-syntax-highlighting"
];
};
};
};
};
}