Modularize zsh themes

This commit is contained in:
Isshi0417 2024-07-06 22:57:59 +09:00
parent e511e0c430
commit 74188a0271
3 changed files with 31 additions and 26 deletions

View File

@ -4,7 +4,7 @@
imports =
[
../../modules/home-manager/git.nix
../../modules/home-manager/zsh.nix
../../modules/home-manager/shell/zsh.nix
../../modules/home-manager/themes/basic-gtk.nix
];

View File

@ -1,31 +1,6 @@
{ pkgs, ... }:
{
# Download zsh packages
home.packages = with pkgs; [
zsh
oh-my-zsh
starship
];
# Enable zsh
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
# oh-my-zsh
oh-my-zsh = {
enable = true;
plugins = [
"git"
];
theme = "robbyrussell";
};
};
# Configure starship
programs.starship = {
enable = true;
enableZshIntegration = true;

View File

@ -0,0 +1,30 @@
{ pkgs, ... }:
{
imports = [
./themes/dracula.nix
];
# Download zsh packages
home.packages = with pkgs; [
zsh
oh-my-zsh
starship
];
# Enable zsh
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
# oh-my-zsh
oh-my-zsh = {
enable = true;
plugins = [
"git"
];
};
};
}