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 | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 22 | home.file.".snowfall.systemname".text = '' |
| 23 | greylag |
| 24 | ''; |
| 25 | |
Skyler Grey | 0c5b0fc | 2024-03-03 15:38:44 +0000 | [diff] [blame] | 26 | programs.git.includes = [ |
| 27 | { |
| 28 | condition = "gitdir:~/Code/clicks/"; |
| 29 | contents.user.email = "minion@clicks.codes"; |
| 30 | } |
| 31 | { |
| 32 | condition = "gitdir:~/Code/personal/"; |
| 33 | contents.user.email = "skyler3665@gmail.com"; |
| 34 | } |
| 35 | { |
| 36 | condition = "gitdir:~/Code/collabora/"; |
| 37 | contents.user.email = "skyler.grey@collabora.com"; |
| 38 | } |
| 39 | ]; |
| 40 | |
Skyler Grey | 695fa63 | 2024-02-17 22:45:41 +0000 | [diff] [blame] | 41 | programs.git.extraConfig.alias = { |
| 42 | recommit = "!git commit --verbose -eF $(git rev-parse --git-dir)/COMMIT_EDITMSG"; |
Samuel Shuert | 659b564 | 2024-02-23 20:47:43 +0000 | [diff] [blame] | 43 | graph = "log --graph --oneline --decorate"; |
| 44 | hash = "rev-parse HEAD"; |
| 45 | personal = "config user.email skyler3665@gmail.com"; |
| 46 | clicks = "config user.email minion@clicks.codes"; |
| 47 | collabora = "config user.email skyler.grey@collabora.com"; |
Skyler Grey | 4bb9fb3 | 2024-02-24 12:23:36 +0000 | [diff] [blame] | 48 | 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''; |
| 49 | }; |
| 50 | |
| 51 | home.shellAliases = { |
| 52 | 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] | 53 | }; |
| 54 | |
| 55 | programs.git.extraConfig.user = { |
| 56 | name = "Skyler Grey"; |
| 57 | signingkey = "7C868112B5390C5C"; |
| 58 | }; |
| 59 | |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 60 | chimera = { |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 61 | hyprland.enable = true; |
| 62 | hyprland.hyprpaper.splash.enable = true; |
| 63 | |
| 64 | touchpad.enable = true; |
| 65 | |
| 66 | hyprland.monitors = [ |
| 67 | "eDP-1,preferred,0x0,1" |
| 68 | "desc:Dell Inc. DELL P2715Q V7WP95AV914L,preferred,2256x-1956,1,transform,1" |
| 69 | "desc:AOC 2460G5 0x00023C3F,preferred,336x-1080,1" |
| 70 | ]; |
| 71 | |
Skyler Grey | cf116d5 | 2024-02-15 19:51:31 +0000 | [diff] [blame] | 72 | theme.wallpaper = ./wallpaper.png; |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 73 | theme.catppuccin = { |
| 74 | enable = true; |
| 75 | style = "Latte"; |
| 76 | color = "Maroon"; |
| 77 | }; |
| 78 | |
| 79 | browser.chromium = { |
| 80 | enable = true; |
| 81 | extensions = { |
| 82 | ublockOrigin.enable = true; |
| 83 | bitwarden.enable = true; |
| 84 | }; |
| 85 | }; |
| 86 | |
| 87 | browser.firefox = { |
| 88 | enable = true; |
| 89 | extensions = { |
| 90 | bitwarden.enable = true; |
| 91 | youtube = { |
| 92 | sponsorBlock.enable = true; |
| 93 | returnDislike.enable = true; |
| 94 | deArrow.enable = true; |
| 95 | }; |
| 96 | reactDevTools.enable = true; |
| 97 | adnauseam.enable = true; |
| 98 | }; |
Skyler Grey | cd3d38b | 2024-02-25 15:18:32 +0000 | [diff] [blame] | 99 | search = { |
| 100 | enable = true; |
| 101 | extensions.enable = true; |
| 102 | bookmarks.enable = true; |
| 103 | engines = [ |
| 104 | "Kagi" |
| 105 | "MDN" |
| 106 | "NixOS Options" |
| 107 | "NixOS Packages" |
| 108 | "Home-Manager Options" |
| 109 | "Noogle" |
| 110 | "GitHub" |
Skyler Grey | 5ed8cf4 | 2024-03-01 19:23:15 +0000 | [diff] [blame] | 111 | "Docs.rs" |
| 112 | "Crates.io" |
Skyler Grey | cd3d38b | 2024-02-25 15:18:32 +0000 | [diff] [blame] | 113 | "Arch Wiki" |
| 114 | "Gentoo Wiki" |
| 115 | ]; |
| 116 | }; |
Skyler Grey | 0e91679 | 2024-02-24 12:29:18 +0000 | [diff] [blame] | 117 | extraExtensions = [ |
| 118 | config.nur.repos.rycee.firefox-addons.sidebery |
Skyler Grey | 0e91679 | 2024-02-24 12:29:18 +0000 | [diff] [blame] | 119 | ]; |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 120 | }; |
Samuel Shuert | 02ffd1e | 2024-02-13 21:37:15 -0500 | [diff] [blame] | 121 | |
| 122 | shell.bash.enable = true; |
| 123 | shell.defaultAliases.enable = true; |
Skyler Grey | 4bb9fb3 | 2024-02-24 12:23:36 +0000 | [diff] [blame] | 124 | shell.replacements.defaultEnable = true; |
Skyler Grey | 1f22a48 | 2024-02-24 21:22:15 +0000 | [diff] [blame] | 125 | shell.replacements.bat.enable = false; |
Samuel Shuert | 02ffd1e | 2024-02-13 21:37:15 -0500 | [diff] [blame] | 126 | |
| 127 | theme.font.nerdFontGlyphs.enable = true; |
| 128 | |
Skyler Grey | 2d815aa | 2024-02-15 21:24:47 +0000 | [diff] [blame] | 129 | editor.ed = { |
| 130 | enable = true; |
| 131 | prompt = ":"; |
| 132 | defaultEditor = false; |
| 133 | }; |
| 134 | |
Samuel Shuert | 02ffd1e | 2024-02-13 21:37:15 -0500 | [diff] [blame] | 135 | editor.neovim.enable = true; |
Skyler Grey | 2d815aa | 2024-02-15 21:24:47 +0000 | [diff] [blame] | 136 | |
Skyler Grey | ec50d24 | 2024-02-15 23:09:46 +0000 | [diff] [blame] | 137 | editor.emacs = { |
Skyler Grey | 2d815aa | 2024-02-15 21:24:47 +0000 | [diff] [blame] | 138 | enable = true; |
| 139 | defaultEditor = false; |
| 140 | }; |
Skyler Grey | 71b8198 | 2024-02-15 18:06:36 +0000 | [diff] [blame] | 141 | |
| 142 | input.keyboard = { |
| 143 | layout = "us"; |
| 144 | variant = "dvorak"; |
| 145 | }; |
Skyler Grey | 5e34498 | 2024-02-15 18:59:45 +0000 | [diff] [blame] | 146 | |
| 147 | input.mouse.scrolling.natural = true; |
Skyler Grey | bb7586a | 2024-02-15 19:15:04 +0000 | [diff] [blame] | 148 | |
| 149 | git = { |
| 150 | delta.enable = true; |
Skyler Grey | d5457a2 | 2024-02-15 23:02:32 +0000 | [diff] [blame] | 151 | stgit.enable = true; |
Skyler Grey | bb7586a | 2024-02-15 19:15:04 +0000 | [diff] [blame] | 152 | gitReview.enable = true; |
| 153 | auth.clicksUsername = "minion"; |
Skyler Grey | 695fa63 | 2024-02-17 22:45:41 +0000 | [diff] [blame] | 154 | gpg.enable = true; |
Skyler Grey | bb7586a | 2024-02-15 19:15:04 +0000 | [diff] [blame] | 155 | }; |
Skyler Grey | fb12e72 | 2024-03-02 20:39:58 +0000 | [diff] [blame] | 156 | |
| 157 | shell.usefulPackages.enable = true; |
Skyler Grey | 4fe40b4 | 2024-03-04 18:39:57 +0000 | [diff] [blame] | 158 | |
| 159 | games = { |
| 160 | minecraft.enable = true; |
| 161 | itch.enable = true; |
| 162 | }; |
Skyler Grey | 6390443 | 2024-02-20 23:25:45 +0000 | [diff] [blame] | 163 | |
| 164 | yubikey.enable = true; |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 165 | }; |
Skyler Grey | 1f22a48 | 2024-02-24 21:22:15 +0000 | [diff] [blame] | 166 | |
| 167 | services.nextcloud-client = { |
| 168 | enable = true; |
| 169 | startInBackground = true; |
| 170 | }; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 171 | } |