Compare commits
7 Commits
61ca7ef3bb
...
0c31caf113
Author | SHA1 | Date |
---|---|---|
Mateusz Słodkowicz | 0c31caf113 | |
Mateusz Słodkowicz | e4a320cbc8 | |
Mateusz Słodkowicz | fd039ff7cd | |
Mateusz Słodkowicz | e69a55340e | |
Mateusz Słodkowicz | a19b5b9a3f | |
Mateusz Słodkowicz | f0ae63d1b6 | |
Mateusz Słodkowicz | 48e82bb70f |
|
@ -241,7 +241,7 @@
|
||||||
fonts.fontconfig.defaultFonts.sansSerif = [ "Noto Sans" "DejaVu Sans" "WenQuanYi Zen Hei" "Noto Color Emoji" ];
|
fonts.fontconfig.defaultFonts.sansSerif = [ "Noto Sans" "DejaVu Sans" "WenQuanYi Zen Hei" "Noto Color Emoji" ];
|
||||||
fonts.fontconfig.defaultFonts.serif = [ "Noto Serif" "DejaVu Serif" "WenQuanYi Zen Hei" "Noto Color Emoji" ];
|
fonts.fontconfig.defaultFonts.serif = [ "Noto Serif" "DejaVu Serif" "WenQuanYi Zen Hei" "Noto Color Emoji" ];
|
||||||
fonts.fontconfig.defaultFonts.emoji = [ "Noto Color Emoji" "OpenMoji Color" ];
|
fonts.fontconfig.defaultFonts.emoji = [ "Noto Color Emoji" "OpenMoji Color" ];
|
||||||
fonts.fontconfig.defaultFonts.monospace = [ "FiraCode Nerd Font Mono" "Noto Sans Mono" "WenQuanYi Zen Hei Mono" ];
|
fonts.fontconfig.defaultFonts.monospace = [ "Hack Nerd Font" "Noto Sans Mono" "WenQuanYi Zen Hei Mono" ];
|
||||||
|
|
||||||
|
|
||||||
environment.enableAllTerminfo = true;
|
environment.enableAllTerminfo = true;
|
||||||
|
|
|
@ -9,7 +9,7 @@ in
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
enable = lib.mkDefault true;
|
enable = true;
|
||||||
enableCompletion = lib.mkDefault true;
|
enableCompletion = lib.mkDefault true;
|
||||||
enableVteIntegration = lib.mkDefault true;
|
enableVteIntegration = lib.mkDefault true;
|
||||||
historyControl = lib.mkDefault [ "erasedups" "ignorespace" ];
|
historyControl = lib.mkDefault [ "erasedups" "ignorespace" ];
|
||||||
|
|
|
@ -6,7 +6,7 @@ in
|
||||||
options.materus.profile.fish.enable = materusArg.pkgs.lib.mkBoolOpt config.materus.profile.enableTerminalExtra "Enable materus fish config";
|
options.materus.profile.fish.enable = materusArg.pkgs.lib.mkBoolOpt config.materus.profile.enableTerminalExtra "Enable materus fish config";
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = lib.mkDefault true;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,10 +4,10 @@ let
|
||||||
cfg = config.materus.profile.starship;
|
cfg = config.materus.profile.starship;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.materus.profile.starship.enable = materusArg.pkgs.lib.mkBoolOpt (profile.zsh.enable || profile.bash.enable || profile.fish.enable) "Enable materus fish config";
|
options.materus.profile.starship.enable = materusArg.pkgs.lib.mkBoolOpt false "Enable materus starship config";
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.starship.enable = lib.mkDefault cfg.enable;
|
programs.starship.enable = true;
|
||||||
|
|
||||||
programs.starship.settings = {
|
programs.starship.settings = {
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ in
|
||||||
{
|
{
|
||||||
options.materus.profile.zsh.enable = materusArg.pkgs.lib.mkBoolOpt config.materus.profile.enableTerminalExtra "Enable materus zsh config";
|
options.materus.profile.zsh.enable = materusArg.pkgs.lib.mkBoolOpt config.materus.profile.enableTerminalExtra "Enable materus zsh config";
|
||||||
options.materus.profile.zsh.prompt = lib.mkOption {
|
options.materus.profile.zsh.prompt = lib.mkOption {
|
||||||
type = lib.types.enum [ "p10k" "starship" ];
|
type = lib.types.enum [ "p10k" ];
|
||||||
example = "p10k";
|
example = "p10k";
|
||||||
default = "p10k";
|
default = "p10k";
|
||||||
};
|
};
|
||||||
|
@ -85,10 +85,7 @@ in
|
||||||
${makeEnv "__MATERUS_HM_ZSH_PROMPT" cfg.prompt}
|
${makeEnv "__MATERUS_HM_ZSH_PROMPT" cfg.prompt}
|
||||||
${makeEnv "__MATERUS_HM_ZSH_PRIVATE" "0"}
|
${makeEnv "__MATERUS_HM_ZSH_PRIVATE" "0"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
||||||
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"
|
||||||
|
@ -124,6 +121,7 @@ in
|
||||||
size = 100000;
|
size = 100000;
|
||||||
share = true;
|
share = true;
|
||||||
ignoreDups = true;
|
ignoreDups = true;
|
||||||
|
ignoreAllDups = true;
|
||||||
ignoreSpace = true;
|
ignoreSpace = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -145,10 +143,10 @@ in
|
||||||
|
|
||||||
|
|
||||||
bindkey -r "^["
|
bindkey -r "^["
|
||||||
bindkey ";5C" forward-word
|
bindkey "^[[1;5C" forward-word
|
||||||
bindkey ";5D" backward-word
|
bindkey "^[[1;5D" backward-word
|
||||||
bindkey ";5A" history-substring-search-up-prefixed
|
bindkey "^[[1;5A" history-substring-search-up-prefixed
|
||||||
bindkey ";5B" history-substring-search-down-prefixed
|
bindkey "^[[1;5B" history-substring-search-down-prefixed
|
||||||
|
|
||||||
zsh-private() {
|
zsh-private() {
|
||||||
__MATERUS_HM_ZSH_PRIVATE=1 ${lib.getExe config.programs.zsh.package}
|
__MATERUS_HM_ZSH_PRIVATE=1 ${lib.getExe config.programs.zsh.package}
|
||||||
|
|
|
@ -18,6 +18,7 @@ in
|
||||||
{
|
{
|
||||||
programs.wezterm.enable = true;
|
programs.wezterm.enable = true;
|
||||||
programs.wezterm.colorSchemes = { };
|
programs.wezterm.colorSchemes = { };
|
||||||
|
programs.wezterm.enableZshIntegration = false;
|
||||||
programs.wezterm.extraConfig = ''
|
programs.wezterm.extraConfig = ''
|
||||||
|
|
||||||
package.path = package.path .. ";${materusArg.cfg.path}/extraFiles/config/wezterm/?.lua"
|
package.path = package.path .. ";${materusArg.cfg.path}/extraFiles/config/wezterm/?.lua"
|
||||||
|
|
|
@ -17,7 +17,7 @@ in
|
||||||
fonts.fontconfig.defaultFonts.sansSerif = [ "Noto Sans" "DejaVu Sans" "WenQuanYi Zen Hei" "Noto Color Emoji" ];
|
fonts.fontconfig.defaultFonts.sansSerif = [ "Noto Sans" "DejaVu Sans" "WenQuanYi Zen Hei" "Noto Color Emoji" ];
|
||||||
fonts.fontconfig.defaultFonts.serif = [ "Noto Serif" "DejaVu Serif" "WenQuanYi Zen Hei" "Noto Color Emoji" ];
|
fonts.fontconfig.defaultFonts.serif = [ "Noto Serif" "DejaVu Serif" "WenQuanYi Zen Hei" "Noto Color Emoji" ];
|
||||||
fonts.fontconfig.defaultFonts.emoji = [ "Noto Color Emoji" "OpenMoji Color" ];
|
fonts.fontconfig.defaultFonts.emoji = [ "Noto Color Emoji" "OpenMoji Color" ];
|
||||||
fonts.fontconfig.defaultFonts.monospace = [ "FiraCode Nerd Font Mono" "Noto Sans Mono" "WenQuanYi Zen Hei Mono" ];
|
fonts.fontconfig.defaultFonts.monospace = [ "Hack Nerd Font" "Noto Sans Mono" "WenQuanYi Zen Hei Mono" ];
|
||||||
|
|
||||||
fonts.fontDir.enable = lib.mkDefault true;
|
fonts.fontDir.enable = lib.mkDefault true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue