Compare commits
3 Commits
170cc0fc10
...
01c2d9809a
Author | SHA1 | Date |
---|---|---|
Mateusz Słodkowicz | 01c2d9809a | |
Mateusz Słodkowicz | 9d791cf738 | |
Mateusz Słodkowicz | 96c76e1578 |
|
@ -90,7 +90,6 @@ in
|
||||||
];
|
];
|
||||||
nix.settings.trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ];
|
nix.settings.trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ];
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
nixpkgs.config.firefox.enablePlasmaBrowserIntegration = true;
|
|
||||||
|
|
||||||
services.xserver.displayManager.startx.enable = true;
|
services.xserver.displayManager.startx.enable = true;
|
||||||
|
|
||||||
|
@ -542,7 +541,8 @@ in
|
||||||
i18n.inputMethod.fcitx5.addons = [ pkgs.fcitx5-configtool pkgs.fcitx5-lua pkgs.fcitx5-mozc pkgs.libsForQt5.fcitx5-qt ];
|
i18n.inputMethod.fcitx5.addons = [ pkgs.fcitx5-configtool pkgs.fcitx5-lua pkgs.fcitx5-mozc pkgs.libsForQt5.fcitx5-qt ];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
firefox
|
config.materus.profile.packages.firefox
|
||||||
|
|
||||||
steam
|
steam
|
||||||
steam.run
|
steam.run
|
||||||
gamescope
|
gamescope
|
||||||
|
@ -606,7 +606,7 @@ in
|
||||||
openal
|
openal
|
||||||
gnupg
|
gnupg
|
||||||
pinentry
|
pinentry
|
||||||
pinentry-gnome
|
pinentry-gnome3
|
||||||
pinentry-curses
|
pinentry-curses
|
||||||
ncurses
|
ncurses
|
||||||
monkeysphere
|
monkeysphere
|
||||||
|
|
|
@ -17,7 +17,8 @@ let
|
||||||
makeIfVar = var: val: ret: ''
|
makeIfVar = var: val: ret: ''
|
||||||
if [ ''$${var} = "${val}" ]; then
|
if [ ''$${var} = "${val}" ]; then
|
||||||
${ret}
|
${ret}
|
||||||
fi'';
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -64,13 +65,14 @@ in
|
||||||
enableSyntaxHighlighting = true;
|
enableSyntaxHighlighting = true;
|
||||||
enableVteIntegration = true;
|
enableVteIntegration = true;
|
||||||
historySubstringSearch.enable = true;
|
historySubstringSearch.enable = true;
|
||||||
historySubstringSearch.searchUpKey = ";5A";
|
historySubstringSearch.searchUpKey = "$key[Up]";
|
||||||
historySubstringSearch.searchDownKey = ";5B";
|
historySubstringSearch.searchDownKey = "$key[Down]";
|
||||||
|
|
||||||
|
|
||||||
envExtra = ''
|
envExtra = ''
|
||||||
${makeEnv "__MATERUS_HM_ZSH" "1"}
|
${makeEnv "__MATERUS_HM_ZSH" "1"}
|
||||||
${makeEnv "__MATERUS_HM_ZSH_PROMPT" cfg.prompt}
|
${makeEnv "__MATERUS_HM_ZSH_PROMPT" cfg.prompt}
|
||||||
|
${makeEnv "__MATERUS_HM_ZSH_PRIVATE" "0"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
||||||
|
@ -94,7 +96,7 @@ in
|
||||||
extended = true;
|
extended = true;
|
||||||
save = 100000;
|
save = 100000;
|
||||||
size = 100000;
|
size = 100000;
|
||||||
share = false;
|
share = true;
|
||||||
ignoreDups = true;
|
ignoreDups = true;
|
||||||
ignoreSpace = true;
|
ignoreSpace = true;
|
||||||
};
|
};
|
||||||
|
@ -104,9 +106,29 @@ in
|
||||||
. ${zshcfg}/zinputrc
|
. ${zshcfg}/zinputrc
|
||||||
source ${zshcfg}/zshcompletion.zsh
|
source ${zshcfg}/zshcompletion.zsh
|
||||||
|
|
||||||
|
history-substring-search-up-prefixed(){
|
||||||
|
HISTORY_SUBSTRING_SEARCH_PREFIXED=1 history-substring-search-up
|
||||||
|
}
|
||||||
|
history-substring-search-down-prefixed(){
|
||||||
|
HISTORY_SUBSTRING_SEARCH_PREFIXED=1 history-substring-search-down
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
zle -N history-substring-search-up-prefixed
|
||||||
|
zle -N history-substring-search-down-prefixed
|
||||||
|
|
||||||
|
|
||||||
bindkey -r "^["
|
bindkey -r "^["
|
||||||
bindkey ";5C" forward-word
|
bindkey ";5C" forward-word
|
||||||
bindkey ";5D" backward-word
|
bindkey ";5D" backward-word
|
||||||
|
bindkey ";5A" history-substring-search-up-prefixed
|
||||||
|
bindkey ";5B" history-substring-search-down-prefixed
|
||||||
|
|
||||||
|
zsh-private() {
|
||||||
|
__MATERUS_HM_ZSH_PRIVATE=1 ${lib.getExe config.programs.zsh.package}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
'' +
|
'' +
|
||||||
makeIfVar "__MATERUS_HM_ZSH_PROMPT" "p10k" ''
|
makeIfVar "__MATERUS_HM_ZSH_PROMPT" "p10k" ''
|
||||||
if zmodload zsh/terminfo && (( terminfo[colors] >= 256 )); then
|
if zmodload zsh/terminfo && (( terminfo[colors] >= 256 )); then
|
||||||
|
@ -114,7 +136,12 @@ in
|
||||||
else
|
else
|
||||||
[[ ! -f ${p10kcfg}/compatibility.zsh ]] || source ${p10kcfg}/compatibility.zsh
|
[[ ! -f ${p10kcfg}/compatibility.zsh ]] || source ${p10kcfg}/compatibility.zsh
|
||||||
fi
|
fi
|
||||||
'';
|
'' + makeIfVar "__MATERUS_HM_ZSH_PRIVATE" "1" ''
|
||||||
|
unset HISTFILE
|
||||||
|
${lib.optionalString config.programs.zsh.history.share "unsetopt SHARE_HISTORY"}
|
||||||
|
''
|
||||||
|
|
||||||
|
;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue