Skip to content

Commit

Permalink
single source for ohmyzsh things
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyEnr1quez committed Sep 6, 2024
1 parent 06dff5c commit 87f5f40
Showing 1 changed file with 20 additions and 46 deletions.
66 changes: 20 additions & 46 deletions modules/home-manager/zsh/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
{ config, pkgs, ... }: {
{ config, pkgs, ... }:
let
ohmyzsh = pkgs.fetchFromGitHub {
owner = "ohmyzsh";
repo = "ohmyzsh";
rev = "570158e464c9f57ab03c4162b4e6853b2c7c650d";
sha256 = "/hOsiudRKAp75PECiNkIV3YVno6PzWZ+Y9wbw75QipM=";
sparseCheckout = [
"plugins/sudo"
"lib"
"themes"
];
};
in
{
# see also https://github.com/Yumasi/nixos-home/blob/master/zsh.nix#L89
home.file = {
".config/zsh/zsh_abbr".source = ./zsh_abbr;
Expand Down Expand Up @@ -61,67 +75,27 @@
}
{
name = "sudo";
src = pkgs.fetchFromGitHub {
owner = "ohmyzsh";
repo = "ohmyzsh";
rev = "570158e464c9f57ab03c4162b4e6853b2c7c650d";
sha256 = "/hOsiudRKAp75PECiNkIV3YVno6PzWZ+Y9wbw75QipM=";
# sparseCheckout = ''
# plugins/sudo
# '';
};
src = ohmyzsh;
file = "plugins/sudo/sudo.plugin.zsh";
}
{
name = "git";
src = pkgs.fetchFromGitHub {
owner = "ohmyzsh";
repo = "ohmyzsh";
rev = "570158e464c9f57ab03c4162b4e6853b2c7c650d";
sha256 = "/hOsiudRKAp75PECiNkIV3YVno6PzWZ+Y9wbw75QipM=";
# sparseCheckout = ''
# lib/
# '';
};
src = ohmyzsh;
file = "lib/git.zsh";
}
{
name = "prompt_info_functions";
src = pkgs.fetchFromGitHub {
owner = "ohmyzsh";
repo = "ohmyzsh";
rev = "570158e464c9f57ab03c4162b4e6853b2c7c650d";
sha256 = "/hOsiudRKAp75PECiNkIV3YVno6PzWZ+Y9wbw75QipM=";
# sparseCheckout = ''
# lib/
# '';
};
src = ohmyzsh;
file = "lib/prompt_info_functions.zsh";
}
{
name = "theme-and-appearance";
src = pkgs.fetchFromGitHub {
owner = "ohmyzsh";
repo = "ohmyzsh";
rev = "570158e464c9f57ab03c4162b4e6853b2c7c650d";
sha256 = "/hOsiudRKAp75PECiNkIV3YVno6PzWZ+Y9wbw75QipM=";
# sparseCheckout = ''
# lib/
# '';
};
src = ohmyzsh;
file = "lib/theme-and-appearance.zsh";
}
{
name = "crunch";
src = pkgs.fetchFromGitHub {
owner = "ohmyzsh";
repo = "ohmyzsh";
rev = "570158e464c9f57ab03c4162b4e6853b2c7c650d";
sha256 = "/hOsiudRKAp75PECiNkIV3YVno6PzWZ+Y9wbw75QipM=";
# sparseCheckout = ''
# themes/
# '';
};
src = ohmyzsh;
file = "themes/crunch.zsh-theme";
}
{
Expand Down

0 comments on commit 87f5f40

Please sign in to comment.