forked from FaustXVI/nixos-xadet-configuration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcli.nix
79 lines (77 loc) · 2.16 KB
/
cli.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{ pkgs, ... }:
with pkgs; {
imports =
let
ls = dir: builtins.map (f: (dir + "/${f}")) (builtins.attrNames (builtins.readDir dir));
in
ls ./apps/cli;
home.packages = [
thefuck
peco
powerline-fonts
jetbrains-mono
cascadia-code
rlwrap
srm # secure replacement for rm that overwrites the data in the target files before unlinking them
htop
dos2unix
oha # http load generator with realtime terminal interface
mkvtoolnix-cli # for manipulating mkv files
nix-inspect # Interactive TUI for inspecting nix configs and other expressions
psmisc # small useful utilities that use the proc filesystem (such as fuser, killall and pstree)
gron # Make JSON greppable by transforming it into discrete assignments
xh # Friendly and fast tool for sending HTTP requests (like httpie with a focus on improved performance)
procs # Modern replacement for ps
gdu # Disk usage analyzer with console interface
tldr # Simplified and community-driven man pages with practical examples
jless # command-line pager for JSON data
visidata # interactive multitool for tabular data
yq # jq wrapper for YAML, XML, TOML documents
];
home.shellAliases = {
ls = "eza --git --header";
cat = "bat";
vi = "vim";
top = "btop";
http = "xh";
du = "du -h";
df = "df -h";
man = "batman";
grep = "batgrep";
gsudo = "sudo git -c \"include.path=$HOME/.config/git/config\"";
};
programs = {
atuin = { # improved shell history
enable = true;
flags = [ "--disable-up-arrow" ];
settings = {
search_mode = "skim";
};
};
bat = {
enable = true;
extraPackages = with pkgs.bat-extras; [ batman batgrep ];
};
btop.enable = true;
direnv = {
enable = true;
nix-direnv = {
enable = true;
};
};
eza.enable = true;
fd.enable = true; # Simple, fast and user-friendly alternative to find
ripgrep.enable = true;
jq.enable = true;
helix = {
enable = true;
settings = {
theme = "Monokai";
};
};
zoxide = {
enable = true;
options = [ "--cmd cd" ];
};
};
}