home-profile: fix zsh config, fix type of wezterm option

This commit is contained in:
Mateusz Słodkowicz 2024-03-31 22:49:39 +02:00
parent ee7bcb1c0d
commit b925022a9e
Signed by: materus
SSH Key Fingerprint: SHA256:rzVduzTiiszuYfLPYD0SDZV+g8lxhpcRgpbOZA1X0Uo
2 changed files with 19 additions and 19 deletions

View File

@ -87,24 +87,24 @@ in
initExtraFirst = '' initExtraFirst = ''
${makeIfVar "__MATERUS_HM_ZSH_PROMPT" "p10k" '' ${makeIfVar "__MATERUS_HM_ZSH_PROMPT" "p10k" ''
if [[ -r "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" ]]; then if [[ -r "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" ]]; then
source "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" source "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh"
fi fi''
if zmodload zsh/terminfo && (( "$terminfo[colors]" >= "256" )); then }
__MATERUS_HM_ZSH_256COLORS="''${__MATERUS_HM_ZSH_256COLORS:-1}"; else if zmodload zsh/terminfo && (( "$terminfo[colors]" >= "256" )); then
__MATERUS_HM_ZSH_256COLORS="''${__MATERUS_HM_ZSH_256COLORS:-0}"; __MATERUS_HM_ZSH_256COLORS="''${__MATERUS_HM_ZSH_256COLORS:-1}"; else
fi __MATERUS_HM_ZSH_256COLORS="''${__MATERUS_HM_ZSH_256COLORS:-0}";
if [[ -f "${extraPlugins.powerlevel10k.fullPath}" ]]; then fi
source "${extraPlugins.powerlevel10k.fullPath}" if [[ -f "${extraPlugins.powerlevel10k.fullPath}" ]]; then
fi source "${extraPlugins.powerlevel10k.fullPath}"
if [[ -f "${extraPlugins.sudo.fullPath}" ]]; then fi
source "${extraPlugins.sudo.fullPath}" if [[ -f "${extraPlugins.sudo.fullPath}" ]]; then
fi source "${extraPlugins.sudo.fullPath}"
if [[ -f "${extraPlugins.extract.fullPath}" ]]; then fi
source "${extraPlugins.extract.fullPath}" if [[ -f "${extraPlugins.extract.fullPath}" ]]; then
fi source "${extraPlugins.extract.fullPath}"
'' fi
}''; '';

View File

@ -8,7 +8,7 @@ in
options.materus.profile.wezterm.extraConfig = lib.mkOption { options.materus.profile.wezterm.extraConfig = lib.mkOption {
default = ""; default = "";
description = "Config for wezterm"; description = "Config for wezterm";
type = lib.types.string; type = lib.types.lines;
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
programs.wezterm.enable = true; programs.wezterm.enable = true;