nix-config/modules/basic-tools/default.nix

101 lines
1.8 KiB
Nix
Raw Normal View History

2023-05-01 07:50:13 +02:00
{ pkgs, config, ... }:
2022-05-25 19:27:42 +02:00
{
2023-01-22 23:07:29 +01:00
imports = [
./fzf.nix
2023-02-14 22:00:22 +01:00
./multiplexers.nix
./nix.nix
2023-01-22 23:07:29 +01:00
];
2022-05-25 19:27:42 +02:00
environment.systemPackages = with pkgs; [
bat
fd
file
2022-06-17 13:12:25 +02:00
git
2022-05-25 19:27:42 +02:00
gnupg
2023-03-27 16:29:51 +02:00
glow
2022-05-25 19:27:42 +02:00
htop
irssi
killall
neovim
ripgrep
tealdeer
traceroute
2022-09-27 01:16:19 +02:00
tcpdump
2022-05-25 19:27:42 +02:00
tree
2023-03-22 21:56:06 +01:00
(aspellWithDicts (ps: with ps; [ en en-science en-computers ru nl ]))
2022-05-25 19:27:42 +02:00
exfatprogs
nmap
bind
nnn
2023-03-22 21:56:06 +01:00
lf
2022-05-25 19:27:42 +02:00
man-pages
2023-02-13 14:25:16 +01:00
unzip
usbutils
pciutils
2023-03-13 03:46:17 +01:00
ouch
2022-05-25 19:27:42 +02:00
];
2023-05-01 07:50:13 +02:00
environment.variables =
let
editorconf =
if config.services.emacs.defaultEditor then
{ }
else
{
EDITOR = "nvim";
};
in
{
PAGER = "less";
LESS = "-X -R -F";
} // editorconf;
2022-05-25 19:27:42 +02:00
environment.shellAliases = {
2022-09-27 01:16:19 +02:00
ls = "ls --color=auto";
l = "ls -l";
la = "ls -la";
ll = "ls -lah";
lt = "ls --tree";
2022-05-25 19:27:42 +02:00
vim = "nvim";
2022-08-08 19:27:10 +02:00
grep = "grep --color=auto";
2023-05-03 23:09:08 +02:00
e = "$EDITOR";
v = "$EDITOR";
2022-05-25 19:27:42 +02:00
};
users.defaultUserShell = pkgs.zsh;
programs.zsh = {
enable = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
interactiveShellInit = ''
bindkey -e
export HISTFILE="$HOME/.zsh_history"
export HISTSIZE=10000000
export SAVEHIST=10000000
2023-01-24 15:12:42 +01:00
setopt HIST_IGNORE_ALL_DUPS
2023-01-22 02:18:01 +01:00
# allow comments
setopt interactivecomments
2022-05-25 19:27:42 +02:00
'';
promptInit = ''
2022-09-28 21:42:37 +02:00
source ${pkgs.liquidprompt}/share/zsh/plugins/liquidprompt/liquidprompt
2022-05-25 19:27:42 +02:00
'';
};
environment.etc.liquidpromptrc = {
text = ''
LP_ENABLE_SSH_COLORS=1
LP_ENABLE_TITLE=1
LP_ENABLE_SCREEN_TITLE=1
2022-09-28 21:42:37 +02:00
LP_ENABLE_TEMP=0
LP_ENABLE_SVN=0
2023-01-14 12:57:53 +01:00
LP_BATTERY_THRESHOLD=15
2022-09-28 21:42:37 +02:00
LP_SSH_COLORS=1
2022-05-25 19:27:42 +02:00
'';
};
2022-06-17 13:12:25 +02:00
2022-05-25 19:27:42 +02:00
programs.iftop.enable = true;
programs.mosh.enable = true;
2022-10-03 13:06:00 +02:00
2022-05-25 19:27:42 +02:00
}