-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
63 lines (57 loc) · 1.49 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
{ pkgs, ... }:
{
programs.home-manager.enable = true;
home.username = "hikae";
home.homeDirectory = "/Users/hikae";
home.stateVersion = "23.11";
home.packages = with pkgs; [ ghq cachix ripgrep asdf-vm mise gh ];
home.enableNixpkgsReleaseCheck = false;
programs.direnv.enable = true;
programs.direnv.nix-direnv.enable = true;
programs.git = {
enable = true;
userName = "hikae";
userEmail = "[email protected]";
extraConfig = {
core = {
whitespace = "trailing-space,space-before-tab";
editor = "code --wait";
};
user = {
signingkey = "/Users/hikae/.ssh/id_ed25519.pub";
};
commit = {
gpgsign = true;
};
gpg = {
format = "ssh";
};
};
};
programs.aria2.enable = true;
programs.fzf.enable = true;
programs.bat.enable = true;
programs.lsd.enable = true;
programs.starship.enable = true;
programs.zsh = {
enable = true;
enableCompletion = true;
enableAutosuggestions = true;
syntaxHighlighting.enable = true;
shellAliases =
{
c = "code .";
rel = "source ~/.zshrc";
};
initExtra = ''
# source <(nerdctl completion zsh)
. "$HOME/.nix-profile/share/asdf-vm/asdf.sh"
alias "??"="gh copilot suggest -t shell"
alias "git?"="gh copilot suggest -t git"
alias "gh?"="gh copilot suggest -t gh"
alias "?"="gh copilot explain"
eval "$(mise activate zsh)"
eval "$(gh copilot alias zsh)"
'';
};
}