Files
dotfiles/home/natto/zsh.nix
Amneesh Singh 5fef417fb0 home/natto: move around stuff
move git and zsh from hosts/satori and split services.nix

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2023-01-24 11:36:04 +05:30

34 lines
665 B
Nix

{ config, ... }:
let
secretPath = "${config.home.homeDirectory}/.zshenv_secret";
in
{
programs.zsh = {
enable = true;
autocd = true;
history = rec {
expireDuplicatesFirst = true;
ignoreDups = true;
size = 30000;
save = size;
};
enableAutosuggestions = true;
enableCompletion = true;
enableSyntaxHighlighting = true;
prezto = {
enable = true;
prompt.theme = "pure";
autosuggestions.color = "fg=yellow,bold";
};
initExtra = ''
. ${secretPath};
'';
};
age.secrets.zshenv_secret = {
file = ./secrets/.zshenv_secret;
path = secretPath;
mode = "660";
};
}