-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
94 lines (82 loc) · 1.53 KB
/
home.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
{
# secrets,
config,
pkgs,
username,
nix-index-database,
...
}: let
unstable-packages = with pkgs.unstable; [
bat
bottom
coreutils
curl
du-dust
fd
findutils
fx
git
git-crypt
htop
jq
killall
mosh
procs
ripgrep
sd
helix
tmux
tree
unzip
wget
zip
];
stable-packages = with pkgs; [
# key tools
gnumake # for lunarvim
gcc # for lunarvim
gh # for bootstrapping
just
# local dev stuf
mkcert
httpie
];
in {
imports = [
nix-index-database.hmModules.nix-index
];
home.stateVersion = "24.11";
home = {
username = "${username}";
homeDirectory = "/home/${username}";
sessionVariables.EDITOR = "helix";
sessionVariables.SHELL = "/etc/profiles/per-user/${username}/bin/zsh";
};
home.packages =
stable-packages
++ unstable-packages
++
[];
programs = {
home-manager.enable = true;
nix-index.enable = true;
nix-index.enableZshIntegration = true;
nix-index-database.comma.enable = true;
starship.enable = true;
direnv.enable = true;
direnv.enableZshIntegration = true;
direnv.nix-direnv.enable = true;
zsh = {
enable = true;
autocd = true;
autosuggestion.enable = true;
enableCompletion = true;
history.size = 10000;
history.save = 10000;
history.expireDuplicatesFirst = true;
history.ignoreDups = true;
history.ignoreSpace = true;
historySubstringSearch.enable = true;
};
};
}