-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
75 lines (65 loc) · 1.6 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
{ config, pkgs, lib, ... }:
let
proxyAddr = "socks://192.168.101.5:6153";
in
{
home.username = "mist";
home.homeDirectory = "/home/mist";
home.sessionVariables = {
all_proxy = proxyAddr;
};
programs.gh.enable = true;
programs.git = {
enable = true;
userName = "Mist";
userEmail = "mist.zzh@gmail.com";
extraConfig = {
http.proxy = proxyAddr;
https.proxy = proxyAddr;
};
};
programs.zsh = {
enable = true;
initExtra = ''
bindkey '\eOB' history-substring-search-down # or ^[OB
bindkey '\eOA' history-substring-search-up # or ^[OA
'';
shellAliases = {
update_os = "sudo nixos-rebuild switch --show-trace";
update_os_proxy = "update_os --option substituters https://mirrors.ustc.edu.cn/nix-channels/store";
os_git = "git --git-dir=$HOME/mistOS/ --work-tree=/etc/nixos";
};
zplug = {
enable = true;
plugins = [
{ name = "zsh-users/zsh-autosuggestions"; }
{ name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; }
{ name = "zsh-users/zsh-syntax-highlighting"; }
{ name = "zsh-users/zsh-history-substring-search"; }
];
};
plugins = [
{
name = "powerlevel10k";
src = pkgs.zsh-powerlevel10k;
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
}
{
name = "powerlevel10k-config";
src = ./theme;
file = ".p10k.zsh";
}
];
};
home.packages = with pkgs; [
neofetch
zip
nix-output-monitor
gcc
lua
lua-language-server
kitty
];
home.stateVersion = "23.11";
programs.home-manager.enable = true;
}