Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 1 | { |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 2 | # 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 Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 9 | |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 10 | # 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 Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 16 | |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 17 | # All other arguments come from the home home. |
| 18 | config, |
| 19 | ... |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 20 | }: |
| 21 | { |
Skyler Grey | 0c5b0fc | 2024-03-03 15:38:44 +0000 | [diff] [blame] | 22 | 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 Grey | 695fa63 | 2024-02-17 22:45:41 +0000 | [diff] [blame] | 37 | programs.git.extraConfig.alias = { |
| 38 | recommit = "!git commit --verbose -eF $(git rev-parse --git-dir)/COMMIT_EDITMSG"; |
Samuel Shuert | 659b564 | 2024-02-23 20:47:43 +0000 | [diff] [blame] | 39 | 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 Grey | 4bb9fb3 | 2024-02-24 12:23:36 +0000 | [diff] [blame] | 44 | 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 Grey | 695fa63 | 2024-02-17 22:45:41 +0000 | [diff] [blame] | 49 | }; |
| 50 | |
| 51 | programs.git.extraConfig.user = { |
| 52 | name = "Skyler Grey"; |
| 53 | signingkey = "7C868112B5390C5C"; |
| 54 | }; |
| 55 | |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 56 | chimera = { |
Samuel Shuert | dab963e | 2024-03-23 19:54:28 -0400 | [diff] [blame] | 57 | waybar = { |
| 58 | modules.temperature.hwmonPath = "/sys/class/hwmon/hwmon4/temp1_input"; |
| 59 | modules.laptop.enable = true; |
| 60 | }; |
| 61 | |
Samuel Shuert | fc05cfb | 2024-03-23 21:37:08 -0400 | [diff] [blame] | 62 | nextcloud.enable = true; |
| 63 | |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 64 | 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 Grey | cf116d5 | 2024-02-15 19:51:31 +0000 | [diff] [blame] | 75 | theme.wallpaper = ./wallpaper.png; |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 76 | 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 Grey | cd3d38b | 2024-02-25 15:18:32 +0000 | [diff] [blame] | 102 | 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 Grey | 5ed8cf4 | 2024-03-01 19:23:15 +0000 | [diff] [blame] | 114 | "Docs.rs" |
| 115 | "Crates.io" |
Skyler Grey | cd3d38b | 2024-02-25 15:18:32 +0000 | [diff] [blame] | 116 | "Arch Wiki" |
| 117 | "Gentoo Wiki" |
| 118 | ]; |
| 119 | }; |
Skyler Grey | 0e91679 | 2024-02-24 12:29:18 +0000 | [diff] [blame] | 120 | extraExtensions = [ |
| 121 | config.nur.repos.rycee.firefox-addons.sidebery |
Skyler Grey | 0e91679 | 2024-02-24 12:29:18 +0000 | [diff] [blame] | 122 | ]; |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 123 | }; |
Samuel Shuert | 02ffd1e | 2024-02-13 21:37:15 -0500 | [diff] [blame] | 124 | |
| 125 | shell.bash.enable = true; |
| 126 | shell.defaultAliases.enable = true; |
Skyler Grey | 4bb9fb3 | 2024-02-24 12:23:36 +0000 | [diff] [blame] | 127 | shell.replacements.defaultEnable = true; |
Skyler Grey | 1f22a48 | 2024-02-24 21:22:15 +0000 | [diff] [blame] | 128 | shell.replacements.bat.enable = false; |
Samuel Shuert | 02ffd1e | 2024-02-13 21:37:15 -0500 | [diff] [blame] | 129 | |
| 130 | theme.font.nerdFontGlyphs.enable = true; |
| 131 | |
Skyler Grey | 2d815aa | 2024-02-15 21:24:47 +0000 | [diff] [blame] | 132 | editor.ed = { |
| 133 | enable = true; |
| 134 | prompt = ":"; |
| 135 | defaultEditor = false; |
| 136 | }; |
| 137 | |
Skyler Grey | 1dea6b6 | 2024-03-12 11:41:15 +0000 | [diff] [blame] | 138 | editor.neovim = { |
Skyler Grey | 2d815aa | 2024-02-15 21:24:47 +0000 | [diff] [blame] | 139 | enable = true; |
| 140 | defaultEditor = false; |
| 141 | }; |
Skyler Grey | 71b8198 | 2024-02-15 18:06:36 +0000 | [diff] [blame] | 142 | |
Skyler Grey | 1dea6b6 | 2024-03-12 11:41:15 +0000 | [diff] [blame] | 143 | editor.emacs.enable = true; |
| 144 | |
Skyler Grey | 71b8198 | 2024-02-15 18:06:36 +0000 | [diff] [blame] | 145 | input.keyboard = { |
| 146 | layout = "us"; |
| 147 | variant = "dvorak"; |
| 148 | }; |
Skyler Grey | 5e34498 | 2024-02-15 18:59:45 +0000 | [diff] [blame] | 149 | |
| 150 | input.mouse.scrolling.natural = true; |
Skyler Grey | bb7586a | 2024-02-15 19:15:04 +0000 | [diff] [blame] | 151 | |
| 152 | git = { |
| 153 | delta.enable = true; |
Skyler Grey | d5457a2 | 2024-02-15 23:02:32 +0000 | [diff] [blame] | 154 | stgit.enable = true; |
Skyler Grey | bb7586a | 2024-02-15 19:15:04 +0000 | [diff] [blame] | 155 | gitReview.enable = true; |
| 156 | auth.clicksUsername = "minion"; |
Skyler Grey | 695fa63 | 2024-02-17 22:45:41 +0000 | [diff] [blame] | 157 | gpg.enable = true; |
Skyler Grey | bb7586a | 2024-02-15 19:15:04 +0000 | [diff] [blame] | 158 | }; |
Skyler Grey | fb12e72 | 2024-03-02 20:39:58 +0000 | [diff] [blame] | 159 | |
| 160 | shell.usefulPackages.enable = true; |
Skyler Grey | 4fe40b4 | 2024-03-04 18:39:57 +0000 | [diff] [blame] | 161 | |
| 162 | games = { |
| 163 | minecraft.enable = true; |
| 164 | itch.enable = true; |
| 165 | }; |
Skyler Grey | 6390443 | 2024-02-20 23:25:45 +0000 | [diff] [blame] | 166 | |
| 167 | yubikey.enable = true; |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 168 | }; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 169 | } |