Working on reshuffling

This commit is contained in:
2026-03-19 07:20:36 +00:00
parent 385bc35226
commit 82907d13b6
2 changed files with 11 additions and 15 deletions
+5 -7
View File
@@ -4,20 +4,19 @@ let
username = "henrov";
in
{
# Define a toggle option for enabling Zsh
# Declare a module option to enable Zsh
options.mySystem.terminals.zsh.enable =
lib.mkEnableOption "Enable Zsh terminal with Oh-My-Zsh";
# Module config block
config = lib.mkIf (config.mySystem.terminals.zsh.enable or false) {
# Only evaluate Home Manager config if enabled
config = lib.mkIf (lib.getOption "mySystem.terminals.zsh.enable" or false) {
# Home Manager scope for the user
# Home Manager scope
home-manager.users.${username} = {
programs.zsh.enable = true;
programs.zsh.enableCompletion = true;
# Oh-My-Zsh configuration
programs.zsh.ohMyZsh = {
enable = true;
theme = "catppuccin-mocha";
@@ -32,7 +31,6 @@ in
];
};
# Extra init content
programs.zsh.initExtra = ''
# Catppuccin Mocha colors
local mocha_base="#1E1E2E"
@@ -56,7 +54,7 @@ in
PROMPT='%{$fg[$mocha_blue]%}%n%{$reset_color%}@%{$fg[$mocha_peach]%}%m%{$reset_color%} %{$fg[$mocha_lavender]%}%~%{$reset_color%} %{$fg[$mocha_red]%}$%{$reset_color%} '
RPROMPT='%{$fg[$mocha_green]%}%T%{$reset_color%}'
# Source zsh-syntax-highlighting properly
# Source zsh-syntax-highlighting
if [ -f ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
fi