-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdefault.nix
43 lines (36 loc) · 1.03 KB
/
default.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
{ ... }:
{
imports = [
./starship.nix
./nushell
./zsh
];
programs.zoxide = {
enable = true;
options = [ "--cmd p" ];
};
# nix-index-database is enabled globally for each user in config/home-manager.nix
programs.nix-index.enable = true;
programs.nix-index.enableZshIntegration = false;
programs.nix-index-database.comma.enable = true;
home.persistence."/state".directories = [
".local/share/zoxide"
];
home.shellAliases = {
l = "ls -lahF --group-directories-first --show-control-chars --quoting-style=escape --color=auto";
t = "tree -F --dirsfirst -L 2";
tt = "tree -F --dirsfirst -L 3 --filelimit 16";
cpr = "rsync -axHAWXS --numeric-ids --info=progress2";
md = "mkdir";
rmd = "rm --one-file-system -d";
cp = "cp -vi";
mv = "mv -vi";
rm = "rm --one-file-system -I";
chmod = "chmod -c --preserve-root";
chown = "chown -c --preserve-root";
nb = "nix build --no-link --print-out-paths";
ip = "ip --color";
tmux = "tmux -2";
rg = "rg -S";
};
}