mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
chore: update, remove zsh configs
This commit is contained in:
parent
e495878b0e
commit
79bc61a28e
13 changed files with 58 additions and 180 deletions
|
|
@ -2,43 +2,9 @@
|
|||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
shellAliases = builtins.mapAttrs (lib.const (builtins.getAttr "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;
|
||||
initContent = 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;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue