Modularize zsh themes
This commit is contained in:
parent
e511e0c430
commit
74188a0271
@ -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
|
||||
];
|
||||
|
||||
|
||||
@ -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;
|
||||
30
modules/home-manager/shell/zsh.nix
Normal file
30
modules/home-manager/shell/zsh.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user