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

90 lines
1.3 KiB
Nix
Raw Permalink 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-07-24 00:09:31 +02:00
./nix-ld.nix
2025-01-26 01:39:08 +01:00
./zsh.nix
./fish.nix
2023-01-22 23:07:29 +01:00
];
2025-01-11 03:55:19 +01:00
environment.systemPackages =
with pkgs;
[
bat
fd
file
gnupg
glow
htop
irssi
killall
neovim
ripgrep
tealdeer
traceroute
tcpdump
tree
(aspellWithDicts (
ps: with ps; [
en
en-science
en-computers
ru
nl
]
))
exfatprogs
nmap
bind
lf
man-pages
unzip
usbutils
pciutils
ouch
cryptsetup
sshfs
whois
mtr
2025-02-23 02:34:20 +01:00
joshuto
2025-01-11 03:55:19 +01:00
]
2025-02-18 09:54:31 +01:00
++ (
if config.networking.hostName == "toaster" then
[
gitFull
git-lfs
]
else
[ git ]
);
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";
2025-01-11 03:55:19 +01:00
}
// editorconf;
2022-05-25 19:27:42 +02:00
environment.shellAliases = {
vim = "nvim";
2022-08-08 19:27:10 +02:00
grep = "grep --color=auto";
2022-05-25 19:27:42 +02:00
};
2025-01-26 14:38:45 +01:00
users.defaultUserShell = pkgs.zsh; # keep root shell posix compatible
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
}