refactor: move home manager modules around
This commit is contained in:
parent
5d9230d64f
commit
e181c1c4f3
38 changed files with 64 additions and 183 deletions
37
users/programs/zsh.nix
Normal file
37
users/programs/zsh.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
pkgs,
|
||||
osConfig,
|
||||
type,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
enableVteIntegration = true;
|
||||
dirHashes = {
|
||||
repos = "$HOME/GitRepos";
|
||||
dl = "$HOME/Downloads";
|
||||
};
|
||||
initContent = # zsh
|
||||
''
|
||||
# Bind CTRL+Backspace to delete whole word
|
||||
bindkey '^H' backward-kill-word
|
||||
export SYSTEM_TYPE="${type}"
|
||||
'';
|
||||
# TODO: Look into whether we need to add the history attribute
|
||||
profileExtra = # bash
|
||||
''
|
||||
if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then
|
||||
dbus-run-session Hyprland
|
||||
fi
|
||||
'';
|
||||
plugins = [
|
||||
{
|
||||
name = "vi-mode";
|
||||
src = pkgs.zsh-vi-mode;
|
||||
file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue