2021-01-03 13:08:36 +01:00
|
|
|
|
{ lib, pkgs, ... }:
|
2020-11-07 19:06:34 +01:00
|
|
|
|
let
|
|
|
|
|
dircolors-solarized = pkgs.fetchFromGitHub {
|
|
|
|
|
owner = "seebi";
|
|
|
|
|
repo = "dircolors-solarized";
|
|
|
|
|
rev = "65d4d595ceca96166139862131a006fa3079e00a";
|
|
|
|
|
sha256 = "1nl5rs24gi7zqg7nqsbf9fa94yggwzqf3n3imxgfywl8jny3cj1q";
|
2021-01-03 13:08:36 +01:00
|
|
|
|
|
|
|
|
|
meta.license = lib.licenses.mit;
|
2020-11-07 19:06:34 +01:00
|
|
|
|
};
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
programs = {
|
|
|
|
|
fzf.enable = true;
|
|
|
|
|
direnv = {
|
|
|
|
|
enable = true;
|
|
|
|
|
enableNixDirenvIntegration = true;
|
|
|
|
|
};
|
|
|
|
|
starship = {
|
|
|
|
|
enable = true;
|
|
|
|
|
settings = {
|
|
|
|
|
add_newline = false;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
zsh = {
|
|
|
|
|
enable = true;
|
|
|
|
|
plugins = [
|
|
|
|
|
{
|
|
|
|
|
name = "zsh-nix-shell";
|
|
|
|
|
file = "nix-shell.plugin.zsh";
|
2021-01-04 22:04:43 +01:00
|
|
|
|
src = "${pkgs.zsh-nix-shell}/share/zsh-nix-shell";
|
2020-11-07 19:06:34 +01:00
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
shellAliases = {
|
|
|
|
|
exa = "exa --git --binary";
|
2021-02-28 20:39:49 +01:00
|
|
|
|
ipy = "ipython3";
|
2020-11-07 19:06:34 +01:00
|
|
|
|
l = "exa -l";
|
|
|
|
|
la = "exa -la";
|
|
|
|
|
ll = "exa -l";
|
|
|
|
|
ls = "exa";
|
2021-02-28 20:39:49 +01:00
|
|
|
|
userctl = "systemctl --user";
|
2020-11-07 19:06:34 +01:00
|
|
|
|
vim = "nvim";
|
|
|
|
|
vimdiff = "nvim -d";
|
2021-02-28 20:42:46 +01:00
|
|
|
|
ip = "ip --color=auto";
|
2020-11-07 19:06:34 +01:00
|
|
|
|
};
|
|
|
|
|
envExtra = ''
|
|
|
|
|
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on"
|
|
|
|
|
'';
|
|
|
|
|
initExtra = ''
|
|
|
|
|
eval $(${pkgs.coreutils}/bin/dircolors -b ${dircolors-solarized}/dircolors.ansi-universal)
|
|
|
|
|
|
2021-02-28 11:25:27 +01:00
|
|
|
|
# no sad smiley (starship shows exit status)
|
|
|
|
|
zstyle ':prompt:grml:right:setup' items
|
|
|
|
|
|
2021-03-02 08:47:23 +01:00
|
|
|
|
# grml config sets these but systemd --user import-environment doesn’t
|
|
|
|
|
# like escape sequences in environment variables
|
|
|
|
|
# FIXME: remove with systemd 248 (https://github.com/systemd/systemd/commit/30927a24848c4d727f7619cc74b878f098cdd724)
|
|
|
|
|
unset \
|
|
|
|
|
LESS_TERMCAP_mb \
|
|
|
|
|
LESS_TERMCAP_md \
|
|
|
|
|
LESS_TERMCAP_me \
|
|
|
|
|
LESS_TERMCAP_se \
|
|
|
|
|
LESS_TERMCAP_so \
|
|
|
|
|
LESS_TERMCAP_ue \
|
|
|
|
|
LESS_TERMCAP_us
|
|
|
|
|
|
2020-12-19 16:15:45 +01:00
|
|
|
|
source ${../files/zsh/pass-wrappers.zsh}
|
2020-11-07 19:06:34 +01:00
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|