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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
|
{ config, lib, nixpkgs, pkgs, wallpapers, ... }:
{
home.username = "preston";
home.homeDirectory = "/home/preston";
home.packages = [
pkgs.vim
pkgs.git
pkgs.curl
pkgs.wget
pkgs.pfetch
pkgs.cowsay
pkgs.ffmpeg
pkgs.hyprland
pkgs.grim
pkgs.acpilight
pkgs.light
pkgs.gnupg
pkgs.pass
pkgs.fira-code
pkgs.croc
pkgs.nixpkgs-fmt
pkgs.mu
pkgs.rust-analyzer
pkgs.cargo
pkgs.rnix-lsp
pkgs.clang
pkgs.bear
pkgs.gnumake
pkgs.clang-tools
pkgs.gammastep
pkgs.pinentry
pkgs.texliveFull
pkgs.helvum
pkgs.xdg-utils
pkgs.noto-fonts
pkgs.noto-fonts-cjk
pkgs.autobuild
pkgs.rsync
pkgs.pavucontrol
pkgs.swww
pkgs.fswebcam
pkgs.nmap
pkgs.mpc-cli
pkgs.python3
pkgs.ghostscript
pkgs.hyprpaper
(pkgs.nerdfonts.override { fonts = [ "Iosevka" ]; })
(pkgs.discord.override {
withOpenASAR = true;
withVencord = true;
})
pkgs.ungoogled-chromium
];
fonts.fontconfig.enable = true;
xsession.enable = true;
home.stateVersion = "23.11";
services.gpg-agent = {
enable = true;
pinentryFlavor = "emacs";
extraConfig = ''
allow-emacs-pinentry
allow-loopback-pinentry
'';
};
services.mpd = {
enable = true;
dbFile = "/home/preston/.config/mpd/db";
dataDir = "/home/preston/.config/mpd/";
network.port = 6600;
musicDirectory = "/home/preston/music";
playlistDirectory = "/home/preston/.config/mpd/playlists";
extraConfig = ''
audio_output {
type "pipewire"
name "pipewire output"
}
'';
};
programs.mpv = {
enable = true;
config = {
profile = "gpu-hq";
force-window = true;
ytdl-format = "bestvideo+bestaudio";
cache-default = 4000000;
};
};
programs.yt-dlp = {
enable = true;
settings = {
embed-thumbnail = true;
embed-subs = true;
sub-langs = "all";
downloader = "aria2c";
downloader-args = "aria2c:'-c -x8 -s8 -k1M'";
};
};
programs.wofi = {
enable = true;
settings = {
location = "bottom-right";
allow_markup = true;
show = "drun";
width = 750;
height = 400;
always_parse_args = true;
show_all = false;
term = "kitty";
hide_scroll = true;
print_command = true;
insensitive = true;
prompt = "";
columns = 2;
};
style = ''
@define-color rosewater #f5e0dc;
@define-color rosewater-rgb rgb(245, 224, 220);
@define-color flamingo #f2cdcd;
@define-color flamingo-rgb rgb(242, 205, 205);
@define-color pink #f5c2e7;
@define-color pink-rgb rgb(245, 194, 231);
@define-color mauve #cba6f7;
@define-color mauve-rgb rgb(203, 166, 247);
@define-color red #f38ba8;
@define-color red-rgb rgb(243, 139, 168);
@define-color maroon #eba0ac;
@define-color maroon-rgb rgb(235, 160, 172);
@define-color peach #fab387;
@define-color peach-rgb rgb(250, 179, 135);
@define-color yellow #f9e2af;
@define-color yellow-rgb rgb(249, 226, 175);
@define-color green #a6e3a1;
@define-color green-rgb rgb(166, 227, 161);
@define-color teal #94e2d5;
@define-color teal-rgb rgb(148, 226, 213);
@define-color sky #89dceb;
@define-color sky-rgb rgb(137, 220, 235);
@define-color sapphire #74c7ec;
@define-color sapphire-rgb rgb(116, 199, 236);
@define-color blue #89b4fa;
@define-color blue-rgb rgb(137, 180, 250);
@define-color lavender #b4befe;
@define-color lavender-rgb rgb(180, 190, 254);
@define-color text #cdd6f4;
@define-color text-rgb rgb(205, 214, 244);
@define-color subtext1 #bac2de;
@define-color subtext1-rgb rgb(186, 194, 222);
@define-color subtext0 #a6adc8;
@define-color subtext0-rgb rgb(166, 173, 200);
@define-color overlay2 #9399b2;
@define-color overlay2-rgb rgb(147, 153, 178);
@define-color overlay1 #7f849c;
@define-color overlay1-rgb rgb(127, 132, 156);
@define-color overlay0 #6c7086;
@define-color overlay0-rgb rgb(108, 112, 134);
@define-color surface2 #585b70;
@define-color surface2-rgb rgb(88, 91, 112);
@define-color surface1 #45475a;
@define-color surface1-rgb rgb(69, 71, 90);
@define-color surface0 #313244;
@define-color surface0-rgb rgb(49, 50, 68);
@define-color base #1e1e2e;
@define-color base-rgb rgb(30, 30, 46);
@define-color mantle #181825;
@define-color mantle-rgb rgb(24, 24, 37);
@define-color crust #11111b;
@define-color crust-rgb rgb(17, 17, 27);
* {
font-family: 'Iosevka Nerd Font', monospace;
font-size: 14px;
}
/* Window */
window {
margin: 0px;
padding: 10px;
border: 0.16em solid @lavender;
border-radius: 0.1em;
background-color: @base;
animation: slideIn 0.5s ease-in-out both;
}
/* Slide In */
@keyframes slideIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
/* Inner Box */
#inner-box {
margin: 5px;
padding: 10px;
border: none;
background-color: @base;
animation: fadeIn 0.5s ease-in-out both;
}
/* Fade In */
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
/* Outer Box */
#outer-box {
margin: 5px;
padding: 10px;
border: none;
background-color: @base;
}
/* Scroll */
#scroll {
margin: 0px;
padding: 10px;
border: none;
background-color: @base;
}
/* Input */
#input {
margin: 5px 20px;
padding: 10px;
border: none;
border-radius: 0.1em;
color: @text;
background-color: @base;
animation: fadeIn 0.5s ease-in-out both;
}
#input image {
border: none;
color: @red;
}
#input * {
outline: 4px solid @red!important;
}
/* Text */
#text {
margin: 5px;
border: none;
color: @text;
animation: fadeIn 0.5s ease-in-out both;
}
#entry {
background-color: @base;
}
#entry arrow {
border: none;
color: @lavender;
}
/* Selected Entry */
#entry:selected {
border: 0.11em solid @lavender;
}
#entry:selected #text {
color: @mauve;
}
#entry:drop(active) {
background-color: @lavender!important;
}
'';
};
programs.kitty = {
enable = true;
settings = {
enable_audio_bell = false;
font_family = "Iosevka Nerd Font";
font_size = 14;
confirm_os_window_close = -1;
background_opacity = "0.9";
# Catppuccin theme
foreground = "#cdd6f4";
background = "#1e1e2e";
selection_foreground = "#1e1e2e";
selection_background = "#f5e0dc";
cursor = "#f5e0dc";
cursor_text_color = "#1e1e2e";
url_color = "#f5e0dc";
active_border_color = "#B4BEFE";
inactive_border_color = "#6C7086";
bell_border_color = "#F9E2AF";
wayland_titlebar_color = "#1E1E2E";
macos_titlebar_color = "#1E1E2E";
active_tab_foreground = "#11111B";
active_tab_background = "#CBA6F7";
inactive_tab_foreground = "#CDD6F4";
inactive_tab_background = "#181825";
tab_bar_background = "#11111B";
mark1_foreground = "#1E1E2E";
mark1_background = "#B4BEFE";
mark2_foreground = "#1E1E2E";
mark2_background = "#CBA6F7";
mark3_foreground = "#1E1E2E";
mark3_background = "#74C7EC";
color0 = "#45475A";
color8 = "#585B70";
color1 = "#F38BA8";
color9 = "#F38BA8";
color2 = "#A6E3A1";
color10 = "#A6E3A1";
color3 = "#F9E2AF";
color11 = "#F9E2AF";
color4 = "#89B4FA";
color12 = "#89B4FA";
color5 = "#F5C2E7";
color13 = "#F5C2E7";
color6 = "#94E2D5";
color14 = "#94E2D5";
color7 = "#BAC2DE";
color15 = "#A6ADC8";
};
};
programs.firefox = {
policies = {
EnableTrackingProtection = true;
OfferToSaveLogins = false;
};
enable = true;
profiles = {
default = {
id = 0;
name = "default";
isDefault = true;
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
ublock-origin
tree-style-tab
firefox-color
vimium
metamask
];
settings = {
content.notify.interval = 100000;
gfx.canvas.accelerated.cache-items = 4096;
gfx.canvas.accelerated.cache-size = 512;
gfx.content.skia-font-cache-size = 20;
browser.cache.jsbc_compression_level = 3;
media.memory_cache_max_size = 65536;
media.cache_readahead_limit = 7200;
media.cache_resume_threshold = 3600;
image.mem.decode_bytes_at_a_time = 32768;
network.buffer.cache.size = 262144;
network.buffer.cache.count = 128;
network.http.max-connections = 1800;
network.http.max-persistent-connections-per-server = 10;
network.http.max-urgent-start-excessive-connections-per-host = 5;
network.http.pacing.requests.enabled = false;
network.dnsCacheExpiration = 3600;
network.dns.max_high_priority_threads = 8;
network.ssl_tokens_cache_capacity = 10240;
network.dns.disablePrefetch = true;
network.prefetch-next = false;
network.predictor.enabled = false;
layout.css.grid-template-masonry-value.enabled = true;
dom.enable_web_task_scheduling = true;
layout.css.has-selector.enabled = true;
dom.security.sanitizer.enabled = true;
browser.contentblocking.category = "strict";
urlclassifier.trackingSkipURLs = "*.reddit.com, *.twitter.com, *.twimg.com, *.tiktok.com";
urlclassifier.features.socialtracking.skipURLs = "*.instagram.com, *.twitter.com, *.twimg.com";
network.cookie.sameSite.noneRequiresSecure = true;
browser.download.start_downloads_in_tmp_dir = true;
browser.helperApps.deleteTempFileOnExit = true;
browser.uitour.enabled = false;
privacy.globalprivacycontrol.enabled = true;
security.OCSP.enabled = 0;
security.remote_settings.crlite_filters.enabled = true;
security.pki.crlite_mode = 2;
security.ssl.treat_unsafe_negotiation_as_broken = true;
browser.xul.error_pages.expert_bad_cert = true;
security.tls.enable_0rtt_data = false;
browser.privatebrowsing.forceMediaMemoryCache = true;
browser.sessionstore.interval = 60000;
privacy.history.custom = true;
browser.search.separatePrivateDefault.ui.enabled = true;
browser.urlbar.update2.engineAliasRefresh = true;
browser.search.suggest.enabled = false;
browser.urlbar.suggest.quicksuggest.sponsored = false;
browser.urlbar.suggest.quicksuggest.nonsponsored = false;
browser.formfill.enable = false;
security.insecure_connection_text.enabled = true;
security.insecure_connection_text.pbmode.enabled = true;
network.IDN_show_punycode = true;
dom.security.https_first = true;
dom.security.https_first_schemeless = true;
signon.formlessCapture.enabled = false;
signon.privateBrowsingCapture.enabled = false;
network.auth.subresource-http-auth-allow = 1;
editor.truncate_user_pastes = false;
security.mixed_content.block_display_content = true;
security.mixed_content.upgrade_display_content = true;
pdfjs.enableScripting = false;
extensions.postDownloadThirdPartyPrompt = false;
network.http.referer.XOriginTrimmingPolicy = 2;
privacy.userContext.ui.enabled = true;
media.peerconnection.ice.proxy_only_if_behind_proxy = true;
media.peerconnection.ice.default_address_only = true;
browser.safebrowsing.downloads.remote.enabled = false;
permissions.default.desktop-notification = 2;
permissions.default.geo = 2;
geo.provider.network.url = "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%";
permissions.manager.defaultsUrl = "";
webchannel.allowObject.urlWhitelist = "";
datareporting.policy.dataSubmissionEnabled = false;
datareporting.healthreport.uploadEnabled = false;
toolkit.telemetry.unified = false;
toolkit.telemetry.enabled = false;
toolkit.telemetry.server = "data:,";
toolkit.telemetry.archive.enabled = false;
toolkit.telemetry.newProfilePing.enabled = false;
toolkit.telemetry.shutdownPingSender.enabled = false;
toolkit.telemetry.updatePing.enabled = false;
toolkit.telemetry.bhrPing.enabled = false;
toolkit.telemetry.firstShutdownPing.enabled = false;
toolkit.telemetry.coverage.opt-out = true;
toolkit.coverage.opt-out = true;
toolkit.coverage.endpoint.base = "";
browser.ping-centre.telemetry = false;
browser.newtabpage.activity-stream.feeds.telemetry = false;
browser.newtabpage.activity-stream.telemetry = false;
app.shield.optoutstudies.enabled = false;
app.normandy.enabled = false;
app.normandy.api_url = "";
breakpad.reportURL = "";
browser.tabs.crashReporting.sendReport = false;
browser.crashReports.unsubmittedCheck.autoSubmit2 = false;
captivedetect.canonicalURL = "";
network.captive-portal-service.enabled = false;
network.connectivity-service.enabled = false;
browser.privatebrowsing.vpnpromourl = "";
extensions.getAddons.showPane = false;
extensions.htmlaboutaddons.recommendations.enabled = false;
browser.discovery.enabled = false;
browser.shell.checkDefaultBrowser = false;
browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons = false;
browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features = false;
browser.preferences.moreFromMozilla = false;
browser.tabs.tabmanager.enabled = false;
browser.aboutConfig.showWarning = false;
browser.aboutwelcome.enabled = false;
toolkit.legacyUserProfileCustomizations.stylesheets = true;
browser.compactmode.show = true;
browser.display.focus_ring_on_anything = true;
browser.display.focus_ring_style = 0;
browser.display.focus_ring_width = 0;
layout.css.prefers-color-scheme.content-override = 2;
browser.privateWindowSeparation.enabled = false;
cookiebanners.service.mode = 1;
full-screen-api.transition-duration.enter = "0 0";
full-screen-api.transition-duration.leave = "0 0";
full-screen-api.warning.delay = -1;
full-screen-api.warning.timeout = 0;
browser.urlbar.suggest.calculator = true;
browser.urlbar.unitConversion.enabled = true;
browser.urlbar.trending.featureGate = false;
browser.newtabpage.activity-stream.feeds.topsites = false;
browser.newtabpage.activity-stream.feeds.section.topstories = false;
extensions.pocket.enabled = false;
browser.download.always_ask_before_handling_new_types = true;
browser.download.manager.addToRecentDocs = false;
browser.download.open_pdf_attachments_inline = true;
browser.bookmarks.openInTabClosesMenu = false;
browser.menu.showViewImageInfo = true;
findbar.highlightAll = true;
layout.word_select.eat_space_to_next_word = false;
};
};
};
};
programs.waybar = {
enable = true;
style = ''
* {
border: none;
border-radius: 0px;
/*font-family: Fira Code, Iosevka Nerd Font, Noto Sans CJK;*/
font-family: Iosevka, FontAwesome, Noto Sans CJK;
font-size: 14px;
font-style: normal;
min-height: 0;
}
window#waybar {
background: rgba(30, 30, 46, 0.5);
border-bottom: 1px solid #45475a;
color: #cdd6f4;
}
#workspaces {
background: #45475a;
margin: 5px 5px 5px 5px;
padding: 0px 5px 0px 5px;
border-radius: 16px;
border: solid 0px #f4d9e1;
font-weight: normal;
font-style: normal;
}
#workspaces button {
padding: 0px 5px;
border-radius: 16px;
color: #a6adc8;
}
#workspaces button.active {
color: #f4d9e1;
background-color: transparent;
border-radius: 16px;
}
#workspaces button:hover {
background-color: #cdd6f4;
color: black;
border-radius: 16px;
}
#custom-date, #clock, #battery, #pulseaudio, #network, #custom-randwall, #custom-launcher {
background: transparent;
padding: 5px 5px 5px 5px;
margin: 5px 5px 5px 5px;
border-radius: 8px;
border: solid 0px #f4d9e1;
}
#custom-date {
color: #D3869B;
}
#custom-power {
color: #24283b;
background-color: #db4b4b;
border-radius: 5px;
margin-right: 10px;
margin-top: 5px;
margin-bottom: 5px;
margin-left: 0px;
padding: 5px 10px;
}
#tray {
background: #45475a;
margin: 5px 5px 5px 5px;
border-radius: 16px;
padding: 0px 5px;
/*border-right: solid 1px #282738;*/
}
#clock {
color: #cdd6f4;
background-color: #45475a;
border-radius: 0px 0px 0px 24px;
padding-left: 13px;
padding-right: 15px;
margin-right: 0px;
margin-left: 10px;
margin-top: 0px;
margin-bottom: 0px;
font-weight: bold;
/*border-left: solid 1px #282738;*/
}
#battery {
color: #89b4fa;
}
#battery.charging {
color: #a6e3a1;
}
#battery.warning:not(.charging) {
background-color: #f7768e;
color: #f38ba8;
border-radius: 5px 5px 5px 5px;
}
#backlight {
background-color: #24283b;
color: #db4b4b;
border-radius: 0px 0px 0px 0px;
margin: 5px;
margin-left: 0px;
margin-right: 0px;
padding: 0px 0px;
}
#network {
color: #f4d9e1;
border-radius: 8px;
margin-right: 5px;
}
#pulseaudio {
color: #f4d9e1;
border-radius: 8px;
margin-left: 0px;
}
#pulseaudio.muted {
background: transparent;
color: #928374;
border-radius: 8px;
margin-left: 0px;
}
#custom-randwall {
color: #f4d9e1;
border-radius: 8px;
margin-right: 0px;
}
#custom-launcher {
color: #e5809e;
background-color: #45475a;
border-radius: 0px 24px 0px 0px;
margin: 0px 0px 0px 0px;
padding: 0 20px 0 13px;
/*border-right: solid 1px #282738;*/
font-size: 20px;
}
#custom-launcher button:hover {
background-color: #FB4934;
color: transparent;
border-radius: 8px;
margin-right: -5px;
margin-left: 10px;
}
#custom-playerctl {
background: #45475a;
padding-left: 15px;
padding-right: 14px;
border-radius: 16px;
/*border-left: solid 1px #282738;*/
/*border-right: solid 1px #282738;*/
margin-top: 5px;
margin-bottom: 5px;
margin-left: 0px;
font-weight: normal;
font-style: normal;
font-size: 16px;
}
#custom-playerlabel {
background: transparent;
padding-left: 10px;
padding-right: 15px;
border-radius: 16px;
/*border-left: solid 1px #282738;*/
/*border-right: solid 1px #282738;*/
margin-top: 5px;
margin-bottom: 5px;
font-weight: normal;
font-style: normal;
}
#window {
background: #45475a;
padding-left: 15px;
padding-right: 15px;
border-radius: 16px;
/*border-left: solid 1px #282738;*/
/*border-right: solid 1px #282738;*/
margin-top: 5px;
margin-bottom: 5px;
font-weight: normal;
font-style: normal;
}
#custom-wf-recorder {
padding: 0 20px;
color: #e5809e;
background-color: #1E1E2E;
}
#cpu {
background-color: #45475a;
/*color: #FABD2D;*/
border-radius: 16px;
margin: 5px;
margin-left: 5px;
margin-right: 5px;
padding: 0px 10px 0px 10px;
font-weight: bold;
}
#memory {
background-color: #45475a;
/*color: #83A598;*/
border-radius: 16px;
margin: 5px;
margin-left: 5px;
margin-right: 5px;
padding: 0px 10px 0px 10px;
font-weight: bold;
}
#disk {
background-color: #45475a;
/*color: #8EC07C;*/
border-radius: 16px;
margin: 5px;
margin-left: 5px;
margin-right: 5px;
padding: 0px 10px 0px 10px;
font-weight: bold;
}
#custom-hyprpicker {
background-color: #45475a;
/*color: #8EC07C;*/
border-radius: 16px;
margin: 5px;
margin-left: 5px;
margin-right: 5px;
padding: 0px 11px 0px 9px;
font-weight: bold;
}
'';
settings = {
mainBar = {
layer = "top";
position = "top";
height = 30;
output = [
"LVDS-1"
];
modules-left = [ "hyprland/workspaces" ];
modules-center = [ "hyprland/window" ];
modules-right = [ "battery" "clock" ];
battery = {
bat = "BAT0";
format = "{capacity}% {icon}";
format-icons = [ "" "" "" "" "" ];
};
clock = {
format = "{:%a %d, %b %H:%M}";
};
};
};
};
programs.zsh = {
enable = true;
initExtra = ''
source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
'';
localVariables = {
EDITOR = "emacsclient -n --alternate-editor=vim";
};
shellAliases = {
c = "clear";
g = "git";
v = "vim";
h = "Hyprland";
};
};
programs.emacs = {
enable = true;
package = pkgs.emacs29-pgtk;
extraConfig = ''
(setq debug-on-error t)
(org-babel-load-file
(expand-file-name "~/org/website/config/emacs.org"))'';
extraPackages = epkgs: [
epkgs.nix-mode
epkgs.emms
epkgs.magit
epkgs.vterm
epkgs.auctex
epkgs.use-package
epkgs.evil
epkgs.evil-collection
epkgs.org-roam
epkgs.org-journal
epkgs.general
epkgs.which-key
epkgs.gruvbox-theme
epkgs.elfeed
epkgs.elfeed-org
epkgs.doom-modeline
epkgs.dashboard
epkgs.org-superstar
epkgs.projectile
epkgs.lsp-mode
epkgs.ivy
epkgs.lsp-ivy
epkgs.all-the-icons
epkgs.page-break-lines
epkgs.counsel
epkgs.mu4e
epkgs.yasnippet
epkgs.company
epkgs.pinentry
epkgs.pdf-tools
epkgs.ivy-pass
epkgs.magit-delta
epkgs.sudo-edit
epkgs.evil-commentary
epkgs.evil-org
epkgs.catppuccin-theme
epkgs.htmlize
epkgs.web-mode
epkgs.emmet-mode
epkgs.ement
epkgs.rustic
epkgs.chatgpt-shell
epkgs.ellama
epkgs.latex-preview-pane
];
};
programs.mbsync = {
enable = true;
extraConfig = ''
IMAPAccount prestonpan
Host mail.nullring.xyz
User preston
PassCmd "pass Mail"
Port 993
SSLType IMAPS
AuthMechs *
CertificateFile /etc/ssl/certs/ca-certificates.crt
IMAPStore prestonpan-remote
Account prestonpan
MaildirStore prestonpan-local
Path ~/email/mbsyncmail/
Inbox ~/email/mbsyncmail/INBOX
SubFolders Verbatim
Channel prestonpan
Far :prestonpan-remote:
Near :prestonpan-local:
Patterns *
Create Near
Sync All
Expunge None
SyncState *
'';
};
programs.msmtp = {
enable = true;
extraConfig = ''
# Set default values for all following accounts.
defaults
auth on
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile ~/.msmtp.log
# Gmail
account preston
host mail.nullring.xyz
port 587
from preston@nullring.xyz
user preston
passwordeval "pass Mail"
# Set a default account
account default : preston
'';
};
programs.bash = {
enable = true;
};
programs.git = {
enable = true;
userName = "Preston Pan";
userEmail = "preston@nullring.xyz";
signing.key = "2B749D1FB976E81613858E490290504780B30E20";
signing.signByDefault = true;
extraConfig = {
init.defaultBranch = "main";
};
aliases = {
co = "checkout";
c = "commit";
a = "add";
s = "switch";
b = "branch";
};
};
wayland.windowManager.hyprland = {
enable = true;
package = pkgs.hyprland;
xwayland.enable = true;
systemd.enable = true;
settings = {
"$mod" = "SUPER";
exec-once = [
"waybar"
"swww init"
"swww img ${wallpapers}/bigrobot.png"
];
blurls = [
"waybar"
];
windowrule = [
"workspace 1, ^(.*emacs.*)$"
"workspace 2, ^(.*firefox.*)$"
"workspace 3, ^(.*discord.*)$"
];
bind = [
"$mod, F, exec, firefox"
"$mod, Return, exec, kitty"
"$mod, E, exec, emacs"
"$mod, V, exec, Discord"
"$mod, D, exec, wofi --show run"
"$mod, Q, killactive"
|