-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.nix
153 lines (127 loc) · 2.83 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{ pkgs, ... }:
let
# unstable = import <nixos-unstable> { };
nodePackages = with pkgs.nodePackages; [
pnpm
typescript
];
pythonPackages = p: with p; [
pip
pygments # NOTE: This is needed for latex minted to work.
pandas
matplotlib
unidecode
];
in
{
nix = {
package = pkgs.nix;
settings.experimental-features = [ "nix-command" "flakes" ];
};
nixpkgs.config.allowUnfree = true;
imports = [
./modules/git
./modules/kitty
./modules/starship
./modules/lsd.nix
./modules/nvim
./modules/latex.nix
./modules/direnv.nix
./modules/lazygit
];
home = {
username = "eprader";
homeDirectory = "/home/eprader";
stateVersion = "23.05";
sessionVariables = {
VISUAL = "$EDITOR";
};
packages = with pkgs; [
#Desktop Environment
# wayland
# hyprland
xclip # clipboard
tmux
# programs
vscode
discord-ptb
spotify
whatsapp-for-linux
# Tools
zip
unzip
curl
wget
htop
jq
# C
gnumake
gcc
libclang
# Python
(python310.withPackages pythonPackages)
# Java
jetbrains.idea-community
plantuml
# Haskell
ghc
];
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
# Virtualisation / VMs
dconf.settings = {
"org/virt-manager/virt-manager/connections" = {
autoconnect = [ "qemu:///system" ];
uris = [ "qemu:///system" ];
};
};
programs.bash = {
enable = true;
shellAliases = {
hms = "home-manager switch";
grep = "grep --color=auto";
fgrep = "fgrep --color=auto";
egrep = "egrep --color=auto";
idea = "runbg idea-ultimate";
};
# NOTE:Add for WSl `source $HOME/.nix-profile/etc/profile.d/nix.sh`
initExtra = ''
source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh export XDG_DATA_DIRS="/home/your_user/.nix-profile/share:$XDG_DATA_DIRS"
runbg () {
"$@" >/dev/null 2>&1 &
}
'';
};
services.flameshot = {
enable = true;
settings = {
General = {
buttons = "@Variant(\\0\\0\\0\\x7f\\0\\0\\0\\vQList<int>\\0\\0\\0\\0\\x4\\0\\0\\0\\x2\\0\\0\\0\\x3\\0\\0\\0\\x5\\0\\0\\0\\x6)";
contrastOpacity = 188;
contrastUiColor = "#282828";
showSidePanelButton = true;
uiColor = "#b6b2b7";
undoLimit = 95;
};
Shortcuts = {
TYPE_COPY = "Return";
};
};
};
programs.ssh = {
enable = true;
matchBlocks = {
"uibk" = {
user = "csaz9581";
hostname = "zid-gpl.uibk.ac.at";
};
"lcc" = {
user = "cb761224";
hostname = "login.lcc3.uibk.ac.at";
};
};
};
programs.zathura.enable = true;
programs.brave.enable = true;
}