-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
294 lines (262 loc) · 7.89 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
{ config, pkgs, inputs, ... }:
{
imports = [
# ./modules/flatpak.nix #Doesnt work for some reason maybe my fault?
./shell/sh.nix
./terminal/kitty.nix
./modules/hyprland.nix
./modules/lf.nix
];
#flatpakPackages = "com.usebottles.bottles org.prismlauncher.PrismLauncher";
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = "debian";
home.homeDirectory = "/home/debian";
home.pointerCursor = {
gtk.enable = true;
x11.enable = true;
# package = pkgs.adw-gtk3;
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Classic";
# name = "adw-gtk3-dark";
size = 23;
};
qt.enable = true;
# platform theme "gtk" or "gnome"
qt.platformTheme = "gtk";
# name of the qt theme
qt.style.name = "breeze";
# detected automatically:
# adwaita, adwaita-dark, adwaita-highcontrast,
# adwaita-highcontrastinverse, breeze,
# bb10bright, bb10dark, cde, cleanlooks,
# gtk2, motif, plastique
# package to use
qt.style.package = pkgs.adwaita-qt;
#gtk = {
# enable = true;
# theme = {
# package = pkgs.flat-remix-gtk;
# name = "Flat-Remix-GTK-Grey-Darkest";
# };
# iconTheme = {
# package = pkgs.libsForQt5.breeze-icons;
# name = "breeze-dark";
# };
#font = {
# name = "Sans";
# size = 11;
# };
# };
#gtk = {
# enable = true;
# theme = {
# name = "adw-gtk3-dark";
# package = pkgs.adw-gtk3;
# };
# };
# This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release
# introduces backwards incompatible changes.
#
# You should not change this value, even if you update Home Manager. If you do
# want to update the value, then make sure to first check the Home Manager
# release notes.
home.stateVersion = "23.05"; # Please read the comment before changing.
nixpkgs = {
# You can add overlays here
overlays = [
(final: prev: {
vimPlugins = prev.vimPlugins // {
own-onedark-nvim = prev.vimUtils.buildVimPlugin {
name = "onedark";
src = inputs.plugin-onedark;
};
};
})
# If you want to use overlays exported from other flakes:
# neovim-nightly-overlay.overlays.default
# Or define it inline, for example:
# (final: prev: {
# hi = final.hello.overrideAttrs (oldAttrs: {
# patches = [ ./change-hello-to-hi.patch ];
# });
# })
];
# Configure your nixpkgs instance
config = {
# Disable if you don't want unfree packages
allowUnfree = true;
# Workaround for https://github.com/nix-community/home-manager/issues/2942
allowUnfreePredicate = _: true;
};
};
# Set up fonts
fonts.fontconfig.enable = true;
# The home.packages option allows you to install Nix packages into your
# environment.
home.packages = [
# # Adds the 'hello' command to your environment. It prints a friendly
# # "Hello, world!" when run.
# pkgs.hello
# install certain font
(pkgs.nerdfonts.override { fonts = ["JetBrainsMono" "FiraCode" "DroidSansMono"]; })
# # It is sometimes useful to fine-tune packages, for example, by applying
# # overrides. You can do that directly here, just don't forget the
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
# # fonts?
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
pkgs.nodejs_21
# # You can also create simple shell scripts directly inside your
# # configuration. For example, this adds a command 'my-hello' to your
# # environment:
# (pkgs.writeShellScriptBin "my-hello" ''
# echo "Hello, ${config.home.username}!"
# '')
(pkgs.discord.override {
# remove any overrides that you don't want
# withOpenASAR = true;
withVencord = true;
}) pkgs.python312
pkgs.brave
pkgs.neofetch
(pkgs.waybar.overrideAttrs (oldAttrs: {
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
})
)
pkgs.qt5.qtwayland
pkgs.qt6.qtwayland
pkgs.dunst
pkgs.libnotify
pkgs.hyprpaper
pkgs.rofi-wayland
pkgs.networkmanagerapplet
pkgs.onlyoffice-bin
pkgs.vscodium
pkgs.gh
(pkgs.callPackage ./bun/bunjs.nix { })
pkgs.grim
pkgs.slurp
pkgs.wl-clipboard
];
# Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'.
home.file = {
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
# # symlink to the Nix store copy.
# ".screenrc".source = dotfiles/screenrc;
# # You can also set the file content immediately.
# ".gradle/gradle.properties".text = ''
# org.gradle.console=verbose
# org.gradle.daemon.idletimeout=3600000
# '';
};
# You can also manage environment variables but you will have to manually
# source
#
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# /etc/profiles/per-user/debian/etc/profile.d/hm-session-vars.sh
#
# if you don't want to manage your shell through Home Manager.
programs.git = {
enable = true;
userName = "Thanos Yeah";
userEmail = "[email protected]";
};
home.sessionVariables = {
EDITOR = "nvim";
};
# home.activation = {
# linkDesktopApplications = {
# after = [ "writeBoundary" "createXdgUserDirectories" ];
# before = [ ];
# data = ''
# rm -rf ${config.xdg.dataHome}/"applications/home-manager"
# mkdir -p ${config.xdg.dataHome}/"applications/home-manager"
# cp -Lr ${config.home.homeDirectory}/.nix-profile/share/applications/* ${config.xdg.dataHome}/"applications/home-manager/"
# '';
#};
#}; # */ Weird highlight bug in nano
# Neovim
programs.neovim =
let
toLua = str: "lua << EOF\n${str}\nEOF\n";
toLuaFile = file: "lua << EOF\n${builtins.readFile file}\nEOF\n";
in
{
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
extraPackages = with pkgs; [
lua-language-server
rnix-lsp
xclip
wl-clipboard
];
plugins = with pkgs.vimPlugins; [
{
plugin = nvim-lspconfig;
config = toLuaFile ./nvim/plugin/lsp.lua;
}
{
plugin = comment-nvim;
config = toLua "require(\"Comment\").setup()";
}
{
plugin = gruvbox-nvim;
config = "colorscheme gruvbox";
}
neodev-nvim
nvim-cmp
{
plugin = nvim-cmp;
config = toLuaFile ./nvim/plugin/cmp.lua;
}
{
plugin = telescope-nvim;
config = toLuaFile ./nvim/plugin/telescope.lua;
}
telescope-fzf-native-nvim
cmp_luasnip
cmp-nvim-lsp
luasnip
friendly-snippets
lualine-nvim
nvim-web-devicons
{
plugin = (nvim-treesitter.withPlugins (p: [
p.tree-sitter-nix
p.tree-sitter-vim
p.tree-sitter-bash
p.tree-sitter-lua
p.tree-sitter-python
p.tree-sitter-json
]));
config = toLuaFile ./nvim/plugin/treesitter.lua;
}
vim-nix
# {
# plugin = vimPlugins.own-onedark-nvim;
# config = "colorscheme onedark";
# }
];
extraLuaConfig = ''
${builtins.readFile ./nvim/options.lua}
'';
# extraLuaConfig = ''
# ${builtins.readFile ./nvim/options.lua}
# ${builtins.readFile ./nvim/plugin/lsp.lua}
# ${builtins.readFile ./nvim/plugin/cmp.lua}
# ${builtins.readFile ./nvim/plugin/telescope.lua}
# ${builtins.readFile ./nvim/plugin/treesitter.lua}
# ${builtins.readFile ./nvim/plugin/other.lua}
# '';
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
}