mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
36 lines
835 B
Nix
36 lines
835 B
Nix
{ config, inputs, ... }:
|
|
let
|
|
shellAliases = builtins.mapAttrs (_: alias: alias.command) (import ./aliases.nix);
|
|
in
|
|
{
|
|
programs.zsh = {
|
|
enable = true;
|
|
dotDir = ".config/zsh";
|
|
|
|
autosuggestion.enable = true;
|
|
syntaxHighlighting.enable = true;
|
|
enableCompletion = true;
|
|
|
|
envExtra = builtins.readFile ./zsh/envExtra.zsh;
|
|
# initExtraBeforeCompInit = builtins.readFile ./zsh/initExtraBeforeCompInit.zsh;
|
|
initExtra = builtins.readFile ./zsh/initExtra.zsh;
|
|
|
|
inherit shellAliases;
|
|
|
|
localVariables = {
|
|
vivid_theme = "catppuccin-${config.catppuccin.flavor}";
|
|
};
|
|
|
|
plugins = [
|
|
{
|
|
name = "ohmyzsh-macos";
|
|
file = "plugins/macos/macos.plugin.zsh";
|
|
src = inputs.ohmyzsh;
|
|
}
|
|
{
|
|
name = "vivid-zsh";
|
|
src = inputs.vivid-zsh;
|
|
}
|
|
];
|
|
};
|
|
}
|