dotfiles/modules/cli/zsh.nix

44 lines
1,019 B
Nix
Raw Normal View History

2021-09-11 13:34:35 +02:00
{ config, lib, pkgs, inputs, ... }:
2021-09-09 21:55:28 +02:00
let
base = (home: {
2021-11-04 17:29:55 +01:00
home.packages = with pkgs; [ du-dust ];
2021-09-09 21:55:28 +02:00
programs = {
zsh = {
enable = true;
dotDir = ".config/zsh";
2021-09-29 13:35:14 +02:00
history = { expireDuplicatesFirst = true; };
shellAliases = {
2021-11-04 17:29:55 +01:00
du = "dust";
2021-09-09 21:55:28 +02:00
ls = "exa -lh";
cat = "bat";
2021-10-06 15:34:19 +02:00
feh = "feh --auto-zoom --scale-down";
2021-09-09 21:55:28 +02:00
};
2021-10-26 09:33:55 +02:00
enableSyntaxHighlighting = true;
2021-09-11 13:53:32 +02:00
enableAutosuggestions = true;
enableCompletion = true;
2021-11-11 18:37:22 +01:00
# initExtra = ''export DIRENV_LOG_FORMAT=""'';
2021-10-31 19:45:06 +01:00
plugins = [{
name = "forgit";
src = inputs.forgit-git;
}];
2021-09-09 21:55:28 +02:00
};
exa.enable = true;
bat.enable = true;
2021-10-31 19:45:06 +01:00
fzf = {
enable = true;
enableZshIntegration = true;
};
2021-09-09 21:55:28 +02:00
starship = {
enable = true;
enableZshIntegration = true;
};
};
});
2021-11-11 18:34:54 +01:00
in
{
2021-09-11 13:53:32 +02:00
environment.pathsToLink = [ "/share/zsh" ];
2021-09-15 00:41:46 +02:00
home-manager.users.moritz = { ... }: (base "/home/moritz");
2021-09-09 21:55:28 +02:00
}