44 lines
1019 B
Nix
44 lines
1019 B
Nix
{ config, lib, pkgs, inputs, ... }:
|
|
|
|
let
|
|
base = (home: {
|
|
home.packages = with pkgs; [ du-dust ];
|
|
programs = {
|
|
zsh = {
|
|
enable = true;
|
|
dotDir = ".config/zsh";
|
|
history = { expireDuplicatesFirst = true; };
|
|
shellAliases = {
|
|
du = "dust";
|
|
ls = "exa -lh";
|
|
cat = "bat";
|
|
feh = "feh --auto-zoom --scale-down";
|
|
};
|
|
enableSyntaxHighlighting = true;
|
|
enableAutosuggestions = true;
|
|
enableCompletion = true;
|
|
# initExtra = ''export DIRENV_LOG_FORMAT=""'';
|
|
plugins = [{
|
|
name = "forgit";
|
|
src = inputs.forgit-git;
|
|
}];
|
|
};
|
|
exa.enable = true;
|
|
bat.enable = true;
|
|
fzf = {
|
|
enable = true;
|
|
enableZshIntegration = true;
|
|
};
|
|
|
|
starship = {
|
|
enable = true;
|
|
enableZshIntegration = true;
|
|
};
|
|
};
|
|
});
|
|
in
|
|
{
|
|
environment.pathsToLink = [ "/share/zsh" ];
|
|
home-manager.users.moritz = { ... }: (base "/home/moritz");
|
|
}
|