home-profile: fix zsh config, fix type of wezterm option
This commit is contained in:
parent
ee7bcb1c0d
commit
b925022a9e
|
@ -89,7 +89,8 @@ in
|
|||
${makeIfVar "__MATERUS_HM_ZSH_PROMPT" "p10k" ''
|
||||
if [[ -r "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" ]]; then
|
||||
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
|
||||
__MATERUS_HM_ZSH_256COLORS="''${__MATERUS_HM_ZSH_256COLORS:-0}";
|
||||
|
@ -103,8 +104,7 @@ in
|
|||
if [[ -f "${extraPlugins.extract.fullPath}" ]]; then
|
||||
source "${extraPlugins.extract.fullPath}"
|
||||
fi
|
||||
''
|
||||
}'';
|
||||
'';
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ in
|
|||
options.materus.profile.wezterm.extraConfig = lib.mkOption {
|
||||
default = "";
|
||||
description = "Config for wezterm";
|
||||
type = lib.types.string;
|
||||
type = lib.types.lines;
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.wezterm.enable = true;
|
||||
|
|
Loading…
Reference in New Issue