1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 08:10:43 +01:00

refactor(zsh): use inputs for plugins

This commit is contained in:
Ryan Cao 2023-12-11 19:38:10 +08:00
parent 408662ff37
commit 883f2c75fb
Signed by: ryanccn
SSH key fingerprint: SHA256:NtP/BlVhoQq4xU6BEcZeT8nIPvHntkJ3lIc2yB+F09E
3 changed files with 75 additions and 41 deletions

View file

@ -1,6 +1,6 @@
{
pkgs,
config,
inputs,
...
}: let
shellAliases = builtins.mapAttrs (_: alias: alias.command) (import ./aliases.nix);
@ -26,22 +26,12 @@ in {
plugins = [
{
name = "ohmyzsh-macos";
file = "plugins/macos.zsh";
src = pkgs.fetchFromGitHub {
owner = "ohmyzsh";
repo = "ohmyzsh";
rev = "1c55a0fe5246487ec9f18e03b7f28862b76cb7ab";
hash = "sha256-TPHdGOQI0hAsduu2UPHZy0lBf1G8+5PCbpE8R5PQglM=";
};
file = "plugins/macos/macos.plugin.zsh";
src = inputs.ohmyzsh;
}
{
name = "vivid-zsh";
src = pkgs.fetchFromGitHub {
owner = "ryanccn";
repo = "vivid-zsh";
rev = "c970eaaf90788c0e75e2a96159953f0f0c2a1b5a";
hash = "sha256-HL4QQY1QMhTw76u/xbBzodViDAMjKhRhmVXptO7qKqY=";
};
src = inputs.vivid-zsh;
}
];
};