me like nix
1# This is the configuration for your user 'sean'
2{ pkgs, inputs, ... }:
3
4{
5 # Import the home-manager modules you want to use
6 imports = [
7 inputs.catppuccin.homeModules.catppuccin
8 inputs.niri.homeModules.niri
9 inputs.zen-browser.homeModules.beta
10 ];
11
12 # Niri window manager settings, now controlled by the imported module
13 programs.niri = {
14 enable = true;
15 settings = {
16 layout = {
17 struts = {
18 top = 0;
19 bottom = 0;
20 };
21 };
22 gestures = {
23 hot-corners = {
24 };
25 };
26 binds = {
27 "Mod+d".action.spawn = [
28 "wofi"
29 "--show"
30 "drun"
31 "--prompt"
32 "Search..."
33 ];
34 "Mod+a".action.spawn = "alacritty";
35 "Mod+h".action = {
36 focus-column-left = { };
37 };
38 "Mod+j".action = {
39 focus-workspace-down = { };
40 };
41 "Mod+k".action = {
42 focus-workspace-up = { };
43 };
44 "Mod+l".action = {
45 focus-column-right = { };
46 };
47 "Mod+p".action = {
48 show-hotkey-overlay = { };
49 };
50 "Mod+o".action = {
51 toggle-overview = { };
52 };
53 "Mod+q".action = {
54 close-window = { };
55 };
56 "Mod+s".action = {
57 screenshot = {
58 show-pointer = true;
59 };
60 };
61 "Mod+1".action = {
62 set-column-width = "100%";
63 };
64 "Mod+2".action = {
65 set-column-width = "50%";
66 };
67 };
68 outputs = {
69 "DP-1" = {
70 scale = 2.0;
71 };
72 };
73 spawn-at-startup = [
74 { command = [ "xwayland-satellite" ]; }
75 { command = [ "swww-daemon" ]; }
76 { command = [ "mako" ]; }
77 { command = [ "waybar" ]; }
78 { command = [ "wl-paste --watch cliphist store" ]; }
79 ];
80 environment = {
81 DISPLAY = ":0";
82 };
83 };
84 };
85
86 nixpkgs.config.allowUnfree = true;
87 nixpkgs.config.permittedInsecurePackages = [
88 "libsoup-2.74.3"
89 ];
90
91 xdg.configFile."waybar/config.jsonc".source = ./waybar/config.jsonc;
92 programs.waybar = {
93 enable = true;
94
95 style = builtins.readFile ./waybar/style.css;
96 };
97
98 programs.ssh = {
99 enable = true;
100 extraConfig = ''
101 Host *
102 IdentityAgent ~/.1password/agent.sock
103 '';
104 };
105
106 # All your user-specific packages
107 home.packages = with pkgs; [
108 helix
109 git
110 jujutsu # jj-cli
111 htop
112 zellij # terminal multiplexer
113 alacritty
114 wofi # Application launcher (or pkgs.rofi-wayland)
115 waybar # Status bar (highly recommended)
116 mako # Notification daemon
117 swww # For setting wallpapers
118 cliphist # Clipboard history manager
119 pavucontrol # GUI for PulseAudio/PipeWire volume control
120 fd
121 ripgrep
122 yazi # tui file browser
123 gh # github cli
124 signal-desktop
125 xwayland-satellite # for running x11 apps
126 nixfmt-rfc-style # nix formatter
127 nil # nix language server
128 atac # postman-like TUI
129 rsync # file sync utility
130 udiskie # for mounting external drives
131 darktable # photo editing
132 zoxide
133 chromium
134 claude-code
135 nautilus # file browser
136 sqlitebrowser
137 gnome-characters # symbol picker
138 sendme # file transfer
139 awscli2 # aws control
140 vscode-json-languageserver
141
142 # --- FONTS ARE IMPORTANT ---
143 noto-fonts
144 noto-fonts-cjk-sans
145 noto-fonts-emoji
146 font-awesome # For icons in waybar, etc.
147 nerd-fonts.jetbrains-mono
148 # --- POLKIT AGENT (for 1Password GUI, etc.) ---
149 lxqt.lxqt-policykit # Lightweight polkit agent
150 ];
151
152 services.udiskie = {
153 enable = true;
154 tray = "auto";
155 automount = true;
156 };
157
158 programs.direnv.enable = true;
159
160 programs.zellij = {
161 enable = true;
162 settings = {
163 keybinds = {
164 unbind = [ "Ctrl q" ];
165 };
166 };
167 };
168
169 programs.zen-browser.enable = true;
170 # programs.swww.enable = true;
171 programs.zoxide = {
172 enable = true;
173 enableFishIntegration = true;
174 };
175
176 programs.obs-studio = {
177 enable = true;
178 plugins = with pkgs.obs-studio-plugins; [
179 obs-backgroundremoval
180 ];
181 };
182
183 # Program configurations
184 programs.git = {
185 enable = true;
186 userName = "seanaye";
187 userEmail = "hello@seanaye.ca";
188 extraConfig = {
189 init.defaultBranch = "main";
190 };
191 };
192 programs.jujutsu = {
193 enable = true;
194 settings.user = {
195 email = "hello@seanaye.ca";
196 name = "Sean Aye";
197 };
198 };
199
200 programs.home-manager.enable = true;
201
202 programs.fish = {
203 enable = true;
204 interactiveShellInit = ''
205 set fish_greeting
206 # Load 1Password CLI plugins
207 if test -f ~/.config/op/plugins.sh
208 source ~/.config/op/plugins.sh
209 end
210 '';
211 };
212
213 programs.starship = {
214 enable = true;
215 enableFishIntegration = true;
216 };
217
218 catppuccin = {
219 enable = true;
220 flavor = "frappe";
221 };
222
223 programs.alacritty = {
224 enable = true;
225 settings = {
226 window = {
227 decorations = "none";
228 };
229 };
230
231 };
232
233 programs.helix = {
234 enable = true;
235 settings = {
236 editor = {
237 bufferline = "multiple";
238 file-picker = {
239 hidden = false;
240 git-ignore = true;
241 };
242 cursor-shape = {
243 insert = "bar";
244 normal = "block";
245 select = "underline";
246 };
247 line-number = "relative";
248 cursorline = true;
249 auto-format = true;
250 end-of-line-diagnostics = "hint";
251 soft-wrap = {
252 enable = true;
253 };
254 lsp = {
255 display-inlay-hints = true;
256 display-messages = true;
257 display-progress-messages = true;
258 };
259 inline-diagnostics = {
260 cursor-line = "hint";
261 };
262 };
263 keys = {
264 normal = {
265 esc = [
266 "keep_primary_selection"
267 "collapse_selection"
268 ];
269 };
270
271 };
272 };
273 languages = {
274 language = [
275 {
276 name = "nix";
277 auto-format = true;
278 formatter = {
279 command = "${pkgs.nixfmt-rfc-style}/bin/nixfmt";
280 };
281 }
282 {
283 name = "rust";
284 auto-format = true;
285 formatter = {
286 command = "rustfmt";
287 args = [
288 "--edition"
289 "2024"
290 ];
291 };
292 indent = {
293 tab-width = 4;
294 unit = "t";
295 };
296 }
297 {
298 name = "astro";
299 auto-format = true;
300 formatter = {
301 command = "npx";
302 args = [
303 "prettier"
304 "."
305 "--write"
306 ];
307 };
308 }
309 {
310 name = "json";
311 auto-format = true;
312 }
313 ];
314 };
315 };
316
317 # Session variables
318 home.sessionVariables = {
319 EDITOR = "hx";
320 VISUAL = "hx";
321 SUDO_EDITOR = "hx";
322 # NIXOS_OZONE_WL = "1";
323 # QT_QPA_PLATFORM = "wayland;xcb";
324 # QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
325 # SDL_VIDEODRIVER = "wayland";
326 # XDG_CURRENT_DESKTOP = "niri";
327 # XDG_SESSION_TYPE = "wayland";
328 SSH_AUTH_SOCK = "~/.1password/agent.sock";
329 };
330
331 # Set the state version for Home Manager
332 home.stateVersion = "25.05";
333}