Oh-my-zsh configured
This commit is contained in:
parent
b139ade9b8
commit
135ce1a40b
1 changed files with 18 additions and 0 deletions
|
@ -15,6 +15,19 @@ in {
|
|||
description = "enable zsh profiling";
|
||||
default = false;
|
||||
};
|
||||
oh-my-zsh = {
|
||||
enable = mkEnableOption "oh-my-zsh";
|
||||
theme = mkOption {
|
||||
type = types.str;
|
||||
description = "oh-my-zsh theme";
|
||||
default = "alanpeabody";
|
||||
};
|
||||
plugins = mkOption {
|
||||
type = types.listOf(types.str);
|
||||
description = "oh-my-zsh plugins (like git)";
|
||||
default = ["git"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
@ -69,6 +82,11 @@ in {
|
|||
};
|
||||
}
|
||||
];
|
||||
oh-my-zsh = mkIf cfg.oh-my-zsh.enable {
|
||||
enable = cfg.oh-my-zsh.enable;
|
||||
theme = cfg.oh-my-zsh.theme;
|
||||
plugins = cfg.oh-my-zsh.plugins;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue