blob: 6e31828782f9e4626c68c2611980e011084cf492 [file] [log] [blame]
Skyler Greya0da6b22024-02-11 22:53:41 +00001{
Skyler Grey4e230892024-02-13 22:58:46 +00002 # Snowfall Lib provides a customized `lib` instance with access to your flake's library
3 # as well as the libraries available from your flake's inputs.
4 lib,
5 # An instance of `pkgs` with your overlays and packages applied is also available.
6 pkgs,
7 # You also have access to your flake's inputs.
8 inputs,
Skyler Greya0da6b22024-02-11 22:53:41 +00009
Skyler Grey4e230892024-02-13 22:58:46 +000010 # Additional metadata is provided by Snowfall Lib.
11 home, # The home architecture for this host (eg. `x86_64-linux`).
12 target, # The Snowfall Lib target for this home (eg. `x86_64-home`).
13 format, # A normalized name for the home target (eg. `home`).
14 virtual, # A boolean to determine whether this home is a virtual target using nixos-generators.
15 host, # The host name for this home.
Skyler Greya0da6b22024-02-11 22:53:41 +000016
Skyler Grey4e230892024-02-13 22:58:46 +000017 # All other arguments come from the home home.
18 config,
19 ...
Skyler Greya0da6b22024-02-11 22:53:41 +000020}:
21{
Skyler Grey0c5b0fc2024-03-03 15:38:44 +000022 programs.git.includes = [
23 {
24 condition = "gitdir:~/Code/clicks/";
25 contents.user.email = "minion@clicks.codes";
26 }
27 {
28 condition = "gitdir:~/Code/personal/";
29 contents.user.email = "skyler3665@gmail.com";
30 }
31 {
32 condition = "gitdir:~/Code/collabora/";
33 contents.user.email = "skyler.grey@collabora.com";
34 }
35 ];
36
Skyler Grey695fa632024-02-17 22:45:41 +000037 programs.git.extraConfig.alias = {
38 recommit = "!git commit --verbose -eF $(git rev-parse --git-dir)/COMMIT_EDITMSG";
Samuel Shuert659b5642024-02-23 20:47:43 +000039 graph = "log --graph --oneline --decorate";
40 hash = "rev-parse HEAD";
41 personal = "config user.email skyler3665@gmail.com";
42 clicks = "config user.email minion@clicks.codes";
43 collabora = "config user.email skyler.grey@collabora.com";
Skyler Grey4bb9fb32024-02-24 12:23:36 +000044 stg-clean = ''!for PATCH in $(stg series -PU); do CHANGE_ID=$(git show -s --format="%(trailers:key=Change-Id,valueonly,separator=%x2C )" $(stg id $PATCH)); git log --format="%(trailers:key=Change-Id,valueonly,separator=%x2C )" | grep -qFx "$CHANGE_ID" && stg delete $PATCH; done'';
45 };
46
47 home.shellAliases = {
48 gpg-card-switch = ''for keygrip in $(gpg --with-keygrip --list-secret-keys 76E0B09A741C4089522111E5F27E3E5922772E7A | grep Keygrip | sed "1d" | sed "s/ *Keygrip = //"); do gpg-connect-agent "delete_key $keygrip" /bye > /dev/null; done; gpg --card-status;'';
Skyler Grey695fa632024-02-17 22:45:41 +000049 };
50
51 programs.git.extraConfig.user = {
52 name = "Skyler Grey";
53 signingkey = "7C868112B5390C5C";
54 };
55
Skyler Grey4e230892024-02-13 22:58:46 +000056 chimera = {
Samuel Shuertdab963e2024-03-23 19:54:28 -040057 waybar = {
58 modules.temperature.hwmonPath = "/sys/class/hwmon/hwmon4/temp1_input";
59 modules.laptop.enable = true;
60 };
61
Samuel Shuertfc05cfb2024-03-23 21:37:08 -040062 nextcloud.enable = true;
63
Skyler Grey4e230892024-02-13 22:58:46 +000064 hyprland.enable = true;
65 hyprland.hyprpaper.splash.enable = true;
66
67 touchpad.enable = true;
68
69 hyprland.monitors = [
70 "eDP-1,preferred,0x0,1"
71 "desc:Dell Inc. DELL P2715Q V7WP95AV914L,preferred,2256x-1956,1,transform,1"
72 "desc:AOC 2460G5 0x00023C3F,preferred,336x-1080,1"
73 ];
74
Skyler Greycf116d52024-02-15 19:51:31 +000075 theme.wallpaper = ./wallpaper.png;
Skyler Grey4e230892024-02-13 22:58:46 +000076 theme.catppuccin = {
77 enable = true;
78 style = "Latte";
79 color = "Maroon";
80 };
81
82 browser.chromium = {
83 enable = true;
84 extensions = {
85 ublockOrigin.enable = true;
86 bitwarden.enable = true;
87 };
88 };
89
90 browser.firefox = {
91 enable = true;
92 extensions = {
93 bitwarden.enable = true;
94 youtube = {
95 sponsorBlock.enable = true;
96 returnDislike.enable = true;
97 deArrow.enable = true;
98 };
99 reactDevTools.enable = true;
100 adnauseam.enable = true;
101 };
Skyler Greycd3d38b2024-02-25 15:18:32 +0000102 search = {
103 enable = true;
104 extensions.enable = true;
105 bookmarks.enable = true;
106 engines = [
107 "Kagi"
108 "MDN"
109 "NixOS Options"
110 "NixOS Packages"
111 "Home-Manager Options"
112 "Noogle"
113 "GitHub"
Skyler Grey5ed8cf42024-03-01 19:23:15 +0000114 "Docs.rs"
115 "Crates.io"
Skyler Greycd3d38b2024-02-25 15:18:32 +0000116 "Arch Wiki"
117 "Gentoo Wiki"
118 ];
119 };
Skyler Grey0e916792024-02-24 12:29:18 +0000120 extraExtensions = [
121 config.nur.repos.rycee.firefox-addons.sidebery
Skyler Grey0e916792024-02-24 12:29:18 +0000122 ];
Skyler Grey4e230892024-02-13 22:58:46 +0000123 };
Samuel Shuert02ffd1e2024-02-13 21:37:15 -0500124
125 shell.bash.enable = true;
126 shell.defaultAliases.enable = true;
Skyler Grey4bb9fb32024-02-24 12:23:36 +0000127 shell.replacements.defaultEnable = true;
Skyler Grey1f22a482024-02-24 21:22:15 +0000128 shell.replacements.bat.enable = false;
Samuel Shuert02ffd1e2024-02-13 21:37:15 -0500129
130 theme.font.nerdFontGlyphs.enable = true;
131
Skyler Grey2d815aa2024-02-15 21:24:47 +0000132 editor.ed = {
133 enable = true;
134 prompt = ":";
135 defaultEditor = false;
136 };
137
Skyler Grey1dea6b62024-03-12 11:41:15 +0000138 editor.neovim = {
Skyler Grey2d815aa2024-02-15 21:24:47 +0000139 enable = true;
140 defaultEditor = false;
141 };
Skyler Grey71b81982024-02-15 18:06:36 +0000142
Skyler Grey1dea6b62024-03-12 11:41:15 +0000143 editor.emacs.enable = true;
144
Skyler Grey71b81982024-02-15 18:06:36 +0000145 input.keyboard = {
146 layout = "us";
147 variant = "dvorak";
148 };
Skyler Grey5e344982024-02-15 18:59:45 +0000149
150 input.mouse.scrolling.natural = true;
Skyler Greybb7586a2024-02-15 19:15:04 +0000151
152 git = {
153 delta.enable = true;
Skyler Greyd5457a22024-02-15 23:02:32 +0000154 stgit.enable = true;
Skyler Greybb7586a2024-02-15 19:15:04 +0000155 gitReview.enable = true;
156 auth.clicksUsername = "minion";
Skyler Grey695fa632024-02-17 22:45:41 +0000157 gpg.enable = true;
Skyler Greybb7586a2024-02-15 19:15:04 +0000158 };
Skyler Greyfb12e722024-03-02 20:39:58 +0000159
160 shell.usefulPackages.enable = true;
Skyler Grey4fe40b42024-03-04 18:39:57 +0000161
162 games = {
163 minecraft.enable = true;
164 itch.enable = true;
165 };
Skyler Grey63904432024-02-20 23:25:45 +0000166
167 yubikey.enable = true;
Skyler Grey4e230892024-02-13 22:58:46 +0000168 };
Skyler Greya0da6b22024-02-11 22:53:41 +0000169}