summaryrefslogtreecommitdiff
path: root/home/zsh/default.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-09-17 22:07:16 -0400
committerFreya Murphy <freya@freyacat.org>2025-09-17 22:07:16 -0400
commit68d03fe362b7e0df11662d8d6a1e01eac0bfae77 (patch)
treea76abd05f662f73b4083ddb0d8bf0d72c29e5a74 /home/zsh/default.nix
parentupdate commits (diff)
downloaddotfiles-nix-68d03fe362b7e0df11662d8d6a1e01eac0bfae77.tar.gz
dotfiles-nix-68d03fe362b7e0df11662d8d6a1e01eac0bfae77.tar.bz2
dotfiles-nix-68d03fe362b7e0df11662d8d6a1e01eac0bfae77.zip
refactor: remove modules folder, fully split home and system modules
Diffstat (limited to 'home/zsh/default.nix')
-rw-r--r--home/zsh/default.nix29
1 files changed, 11 insertions, 18 deletions
diff --git a/home/zsh/default.nix b/home/zsh/default.nix
index 8bb12db..2df01ef 100644
--- a/home/zsh/default.nix
+++ b/home/zsh/default.nix
@@ -1,30 +1,23 @@
{
config,
- pkgs,
+ lib,
...
}: {
programs.zsh = {
enable = true;
enableCompletion = true;
- enableGlobalCompInit = false;
- autosuggestions.enable = true;
+ autosuggestion = {
+ enable = true;
+ highlight = "fg=#${config.theme.colors.subtext}";
+ };
syntaxHighlighting.enable = true;
- histSize = 10000;
+ history.size = 10000;
+ profileExtra = lib.fileContents ./zprofile;
+ envExtra = lib.fileContents ./zshrc;
};
- home-manager.users.${config.user} = {
- home.file = {
- ".zshrc".source = ./zshrc;
- ".zprofile".source = ./zprofile;
- ".nixenv".source = pkgs.writeText "nixenv" ''
- # nix shell env auto generated file
- export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=#${config.theme.colors.subtext}'
- '';
- };
-
- programs.zoxide = {
- enable = true;
- enableZshIntegration = true;
- };
+ programs.zoxide = {
+ enable = true;
+ enableZshIntegration = true;
};
}