home-profile: prepare for wezterm

This commit is contained in:
Mateusz Słodkowicz 2024-03-31 20:01:34 +02:00
parent 305c891d7d
commit e046b8878e
Signed by: materus
SSH Key Fingerprint: SHA256:rzVduzTiiszuYfLPYD0SDZV+g8lxhpcRgpbOZA1X0Uo
2 changed files with 9 additions and 4 deletions

View File

@ -2,7 +2,7 @@
{ {
home.stateVersion = "22.11"; home.stateVersion = "22.11";
home.homeDirectory = "/home/materus"; home.homeDirectory = "/home/materus";
programs.wezterm.enable = true;
programs.git = { programs.git = {
userEmail = "materus@podkos.pl"; userEmail = "materus@podkos.pl";
userName = "materus"; userName = "materus";

View File

@ -18,7 +18,7 @@ let
if [ ''$${var} = "${val}" ]; then if [ ''$${var} = "${val}" ]; then
${ret} ${ret}
fi fi
''; '';
@ -58,7 +58,12 @@ in
pkgs.ripgrep pkgs.ripgrep
]; ];
home.file = builtins.foldl' (a: b: a // b) { } (builtins.map (plugin: { ${plugin.path}.source = plugin.src; }) (builtins.attrValues extraPlugins)); home.file = lib.mkMerge [
(builtins.foldl' (a: b: a // b) { } (builtins.map (plugin: { ${plugin.path}.source = plugin.src; }) (builtins.attrValues extraPlugins)))
{ "${relToDotDir ".zshrc"}".text = lib.mkAfter ''
${lib.optionalString config.programs.wezterm.enable "source \"${config.programs.wezterm.package}/etc/profile.d/wezterm.sh\""}
''; }
];
programs.zsh = { programs.zsh = {
enable = true; enable = true;
@ -158,7 +163,7 @@ in
${lib.optionalString config.programs.zsh.history.share "unsetopt SHARE_HISTORY"} ${lib.optionalString config.programs.zsh.history.share "unsetopt SHARE_HISTORY"}
alias -- 'zsh'="__MATERUS_HM_ZSH_PRIVATE=0 zsh " alias -- 'zsh'="__MATERUS_HM_ZSH_PRIVATE=0 zsh "
'' ''
; ;
}; };