-
Notifications
You must be signed in to change notification settings - Fork 8
/
base.nix
99 lines (86 loc) · 2.39 KB
/
base.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{ config
, inputs
, lib
, outputs
, pkgs
, ...
}:
{
imports = [
# Hardware informations
./tools/inxi.nix
# Shell
./tools/zsh.nix
# # Misc
./tools/htop.nix
./tools/neofetch.nix
./tools/top
./tools/user-scripts
];
systemd.user.startServices = "sd-switch";
nixpkgs = {
# overlays = builtins.attrValues outputs.overlays;
config = {
allowUnfree = true;
allowUnfreePredicate = (_: true);
};
};
nix = {
package = lib.mkForce pkgs.nix;
settings = {
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
warn-dirty = false;
};
};
# # NOTE: By default all programs enabled for the all shells
programs = {
yazi.enable = true; # Filemanager
starship.enable = true; # Terminal prompt
home-manager.enable = true;
git.enable = true;
nix-index.enable = true; # command not found and nix-locate
# Autojump
zoxide = {
enable = true;
options = [ "--cmd c" ];
};
# FZF
fzf = {
enable = true;
enableZshIntegration = false; ## OMZ
defaultCommand = "fd --type file --follow --hidden --exclude .git";
historyWidgetOptions = [ "--sort" "--exact" ];
};
# Cheats navigators
# alias: lnavi (local search)
navi = {
enable = true;
settings = {
cheats = {
paths = [
"$HOME/ghq/github.com/badele/cheats"
"$HOME/ghq/github.com/denisidoro/cheats"
"$HOME/ghq/github.com/denisidoro/navi-tldr-pages"
"$HOME/ghq/github.com/denisidoro/dotfiles"
"$HOME/ghq/github.com/mrVanDalo/navi-cheats"
"$HOME/ghq/github.com/chazeon/my-navi-cheats"
"$HOME/ghq/github.com/caojianhua/MyCheat"
"$HOME/ghq/github.com/Kidman1670/cheats"
"$HOME/ghq/github.com/isene/cheats"
"$HOME/ghq/github.com/m42martin/navi-cheats"
"$HOME/ghq/github.com/infosecstreams/cheat.sheets"
"$HOME/ghq/github.com/prx2090/cheatsheets-for-navi"
"$HOME/ghq/github.com/papanito/cheats"
"$HOME/ghq/github.com/esp0xdeadbeef/cheat.sheets"
];
};
};
};
};
home.packages = with pkgs; [
act # Run your GitHub Actions locally
delta # A syntax-highlighting pager for git
ghq # Remote repository management made easy
direnv # load environment when on the current directory
];
}