2021-09-11 13:34:35 +02:00
|
|
|
{ config, lib, pkgs, inputs, ... }:
|
2021-09-09 21:55:28 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
base = (home: {
|
|
|
|
programs = {
|
|
|
|
zsh = {
|
|
|
|
enable = true;
|
|
|
|
dotDir = ".config/zsh";
|
|
|
|
history = {
|
|
|
|
expireDuplicatesFirst = true;
|
|
|
|
};
|
|
|
|
shellGlobalAliases = {
|
|
|
|
ls = "exa -lh";
|
|
|
|
cat = "bat";
|
|
|
|
};
|
|
|
|
plugins = [
|
2021-09-15 00:41:46 +02:00
|
|
|
{
|
|
|
|
name = "zsh-syntax-highlighting";
|
|
|
|
src = inputs.zsh-syntax-highlighting;
|
|
|
|
}
|
2021-09-09 21:55:28 +02:00
|
|
|
];
|
2021-09-11 13:53:32 +02:00
|
|
|
enableAutosuggestions = true;
|
|
|
|
enableCompletion = true;
|
2021-09-09 21:55:28 +02:00
|
|
|
};
|
|
|
|
exa.enable = true;
|
|
|
|
bat.enable = true;
|
|
|
|
|
|
|
|
starship = {
|
|
|
|
enable = true;
|
|
|
|
enableZshIntegration = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
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
|
|
|
}
|