about summary refs log tree commit diff
path: root/users/grfn (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-09-27 r/2925 fix(gs/emacs): Fix packer-format-bufferGriffin Smith1-3/+10
The previous impl of this was formatting the pre-save contents of the buffer, effectively preventing saving any changes (oops). Change-Id: I17d4b8ba0943964d700f7dca81af4f46b149c0b8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3644 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
2021-09-27 r/2924 feat(gs/home): Install cargo-bloatGriffin Smith1-0/+1
Change-Id: I525aa3ddcacb583e6d3a3ba1529d718b43379273 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3643 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
2021-09-27 r/2923 feat(gs/yeren): Don't encrypt swap partitionGriffin Smith1-2/+3
This is really just not worth the performance hit Change-Id: I6f603aa154c562da2803bd8f73b1135faad243be Reviewed-on: https://cl.tvl.fyi/c/depot/+/3642 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
2021-09-27 r/2922 fix(gs/emacs): Disable idris temporarilyGriffin Smith1-1/+1
This doesn't work right now, and I'm not currently writing any idris Change-Id: I7c090ad9f05c5d24f4f80fdd444e8995629aaba4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3641 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
2021-09-21 r/2904 chore(3p/nixpkgs): Bump channels to 2021-09-20Vincent Ambo2-5/+2
Included fixes: * grfn/mugwump: removed superfluous Buildkite agent user * tazjin/camden: Disabled bitlbee (user config is broken) * grfn/home/vim: vimUtils expects a `pname` * 3p/nixpkgs: Pick awscli2 from stable channel Change-Id: I64ed726b3350f75c7a8a0e6552bcf1d8d9ba7d46
2021-09-11 r/2850 refactor(grfn/xanthous): avoid unnecessary recompilationsterni3-61/+3
hpack is a bit dumb when generating the list of modules for a cabal file's component if multiple of them live in the same directory. Specifically it seems to assume that all modules in the source-dirs of a particular component are also necessary for its compilation. This is quite bad in the case of xanthous since both library and executable have source-dirs: src, so all modules will be compiled twice: Once for the library and then again for the executable despite it depending on the library (actually 4 times in total since we need to build a unprofiled and profiled object for each module…). To fix this we just move Main.hs into its own directory and change the executable's source-dirs, so hpack doesn't get confused anymore. Since all components now have their own source-dirs, unnecessary redundant compilation should be down to 0. The diff of the cabal file shows quite nicely how many module recompilation we've gotten rid of. Change-Id: I2df4fab9b0299b3a2b5d3005508c79b2d9796039 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3533 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: grfn <grfn@gws.fyi>
2021-09-07 r/2823 fix(gs/home): Hardcode home directoryGriffin Smith2-10/+10
`config.home.homeDirectory` is never set, meaning that when this builds in CI it just uses the $HOME of the buildkite agent that's running, causing it to almost always rebuild on new changes - I'm never going to have a username on a system other than `grfn`, so this is fine to just hardcode. Change-Id: I920a0c546f4c06d0429534d116465e8f732218e7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3495 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi> Reviewed-by: tazjin <mail@tazj.in>
2021-09-02 r/2821 feat(gs/system): Conditionally add private.nixGriffin Smith1-1/+2
I have some secret stuff here (not security-secret, just secret that I'm installing it in my system) so this has to be conditionally included Change-Id: Idb12e5bbab507ad3dc5eb610199fd384789c0e20 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3491 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
2021-09-02 r/2820 feat(gs/emacs): Use notmuch treeGriffin Smith1-1/+1
Change-Id: I20eab33ab10a44b6fc230a1fc1c232208c221554 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3489 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-09-02 r/2819 feat(gs/system): Install cargo-udepsGriffin Smith1-0/+1
Change-Id: I30b956cfbeb0b8f8553c8ee41c4979d4ec0c363b Reviewed-on: https://cl.tvl.fyi/c/depot/+/3488 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-08-26 r/2791 refactor(gs/system): Remove chupacabraGriffin Smith4-209/+0
This machine no longer exists Change-Id: I8e549b8397777a01404bd84c10c195e80f281744 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3431 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi> Reviewed-by: tazjin <mail@tazj.in>
2021-08-26 r/2790 refactor(gs/system): Remove rebuilder scriptGriffin Smith2-30/+0
I no longer use this, I just use the rebuild-system that all nixos systems get now. Change-Id: I2272ff13b21b3194c06b51dbc340c19b8bb336a9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3430 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
2021-08-26 r/2782 fix(gs/emacs): Don't repeat flycheck nav with evil .Griffin Smith1-0/+6
Prevent flycheck-next-error and flycheck-prev-error from being repeated by evil, since they're movement commands rather than editing commands. This lets me spam `]e.` if I have to do the same thing to all the errors in a buffer, for example. Change-Id: I5993f6d19b71b63e5f4be1f3ce9e0cfd0357cc6e Reviewed-on: https://cl.tvl.fyi/c/depot/+/3425 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-08-26 r/2781 fix(grfn/system): Fix rust-analyzer target dirGriffin Smith1-1/+1
This was missing a path segment, plus calling it rust-analyzer makes it clearer what's going on Change-Id: I8f71fe1b438d72f743472ab10ec939f686ad0da1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3424 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-08-26 r/2780 feat(gs/home): Alias tf->terraformGriffin Smith1-0/+4
Change-Id: Ic79fec6b19c185a6e094dfc9571ea783a1e07148 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3423 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-08-24 r/2754 chore(3p): bump NixOS channels to 2020-08-18sterni1-2/+2
Wanted to port my emacs config to depot, but missing a dependency from the channel. Adjustments: * Downgrade grfn's Kernel to 5.10: The ck1 patch is not yet available for 5.13 unfortunately and the 5.12 set has been removed upstream. Change-Id: Ifaf315427bda2af590549ca0abec02a79f19a3ec Reviewed-on: https://cl.tvl.fyi/c/depot/+/3375 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: grfn <grfn@gws.fyi>
2021-08-24 r/2753 refactor(users/grfn/gws.fyi): implement isDirectory in pure nixsterni1-10/+2
Another day, another import from derivation avoided by builtins.unsafeDiscardStringContext! Change-Id: I67274b1ba13ba980bb3346b22f2955c702aa3151 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3372 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi> Reviewed-by: tazjin <mail@tazj.in>
2021-08-18 r/2749 fix(gws.fyi): eg -> ieGriffin Smith1-1/+1
Thanks sterni! Change-Id: I7a6ee7586fac45fe62e1d4016e1520e66381caf1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3373 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-08-18 r/2748 feat(gws.fyi): Add a recipe for tomato pasteGriffin Smith4-1/+112
Someone asked for this, so here it is. Change-Id: I00c52deb8c3f4e8f786cf4763b39d862ad041f6d Reviewed-on: https://cl.tvl.fyi/c/depot/+/3371 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
2021-08-18 r/2747 feat(gws.fyi): Allow building whole org directoriesGriffin Smith1-13/+37
Allow building entire directories containing org files as html directories with org-export-html Change-Id: I805da6b2da7e8ea67da13c858f962f36ed120972 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3370 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
2021-08-09 r/2715 feat(gs/home): Install cargo-rrGriffin Smith1-0/+1
Change-Id: If32e485f7ee8f4ae1e4b68be33aa1261c5cf2dbd Reviewed-on: https://cl.tvl.fyi/c/depot/+/3290 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-08-09 r/2714 feat(gs/emacs): Set popup rules for gud buffersGriffin Smith1-0/+4
Change-Id: I74730a924b7cf6652dd64704aa36f850160d8bae Reviewed-on: https://cl.tvl.fyi/c/depot/+/3289 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-08-09 r/2713 feat(gs/emacs): Put rust-analyzer in a different target dirGriffin Smith1-0/+1
This stops it from interfering with command line invocations of things like cargo test Change-Id: Icc24a27ac5e17bb88ed539c13fc33204ef55ce82 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3288 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-08-09 r/2712 feat(gs/emacs): Bind g RET to lsp-rust-analyzer-runGriffin Smith1-1/+1
Change-Id: I667f9033824d4a32abedfb275ea35a06a371ab12 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3287 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-08-08 r/2710 chore(3p/nixpkgs): Bump nixpkgs channels to 2021-08-04Vincent Ambo1-4/+5
I used //tools/depot-nixpkgs-update for this - thanks again, sterni! Included fixes: * temporary workaround for building notmuch python package, fixed in upstream already (but channel hasn't advanced there) * Disable fprintd in grfn.system.yeren, as the fprintd-tod package currently has a version mismatch in nixpkgs Co-authored-by: Griffin Smith <grfn@gws.fyi> Change-Id: If6d71b08ace9db57daadfe3b69b9cd4aec6a5a4e Reviewed-on: https://cl.tvl.fyi/c/depot/+/3274 Reviewed-by: grfn <grfn@gws.fyi> Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
2021-08-02 r/2702 fix(gs/emacs): Explicitly bind g d to lsp-find-definition in rustGriffin Smith1-0/+1
Change-Id: I1d3cbccf1e976df1c08a6e34b736392208351a26 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3272 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-07-30 r/2698 feat(gs/emacs): Switch org-ellipsis characterGriffin Smith1-1/+1
The old one's displaying as an emoji, upsettingly Change-Id: I50980e4b9f2a58463e749a8adcc32f0f9ca1d154 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3261 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-07-16 r/2694 chore(3p): bump unstable channel to 2021-07-03sterni1-3/+0
Didn't bother to update the stable channel as it is unused currently. Changes required: * tazjin/frog, grfn/modules/obs: Remove obs-v4l2sink as it has been integrated into upstream OBS and the package removed from nixpkgs subsequently (at least according to the `builtins.throw`-message). Change-Id: I4335ed060eef2c4ff8ac55a68d894bcc3d8ef4a3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3243 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi> Reviewed-by: tazjin <mail@tazj.in>
2021-07-16 r/2693 fix(gs/system): Add mime handler for telegramdesktopGriffin Smith1-0/+3
Telegram adds this itself, which means the file is different from what home-manager knows about, which means running home-manager switch breaks unless this is here. Change-Id: Iad507bf63365a630b7eef349228b633f5b83d78b Reviewed-on: https://cl.tvl.fyi/c/depot/+/3251 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-07-16 r/2692 refactor(gs/emacs): Drop flow configGriffin Smith1-28/+0
Change-Id: Ide0f3c4de34e6d9cb90038094407f1aa99ccf96f Reviewed-on: https://cl.tvl.fyi/c/depot/+/3250 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-07-16 r/2691 fix(gs/emacs): Shift around loading of org configGriffin Smith1-2/+7
I don't know why this is causing issues, I really don't. But I get agenda items without having to reload this file now. Change-Id: I38fd4f7942430a07231cadbc0320e1ba786616e6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3249 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-07-16 r/2690 fix(gs/emacs): Pass --read-envelope-from to sendmailGriffin Smith1-2/+8
Change-Id: I8e4c0171336cad3ed817956b07b371aba706ab9f Reviewed-on: https://cl.tvl.fyi/c/depot/+/3248 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-07-06 r/2685 feat(gs/emacs): Don't display info-level flycheck errorsGriffin Smith1-1/+3
These end up being things like "hey, you used a proc macro" which isn't useful to me, and clogs up the rest of my error navigation. Change-Id: I9ccfddcce9683184f2479ae1aa30a8414f7e7c51 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3242 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-07-06 r/2684 fix(xanthous): Fix display of square/cubic unitsGriffin Smith2-4/+11
Previously this'd display `5 m m³`, because it'd show the underlying value then add the unit suffix on at the end Change-Id: Idd240ddfebc212460f9fb529eff72732a5dafe2a Reviewed-on: https://cl.tvl.fyi/c/depot/+/3241 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-23 r/2683 fix(gs/emacs): Fix headlines-from-assigned-to-meGriffin Smith1-1/+2
If org-tracker-headlines-from-search is called non-interactively, it only *returns* the org headlines as a string, rather than inputting them at point. Change-Id: Ia43d516f35a11383b206a57f345a6aeedfe86831 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3230 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-23 r/2682 fix(xanthous): Only use alphabetic chars for menu itemsGriffin Smith6-3/+63
Previously, we were using `smallestNotIn` for selecting new characters for menu items with duplicate chatacters - this uses the 'Bounded' instance for the type, which for Char meant the first character we would always select was \NUL - making it look like the menu item had no character, and making it impossible to actually select the menu item. This introduces an AlphaChar newtype, which is a wrapper around Char whose Bounded and Enum instances only use alphabetic characters (a-ZA-Z) and uses that for menu characters instead. Change-Id: If34ed9e9ce84f2bcb1cb87432cc6273f40b69f72 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3229 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-23 r/2681 feat(xanthous): Describe *where* the item is in the inventoryGriffin Smith8-23/+133
When describing items in the inventory, both in detail and when producing menus from those items, describe not just the item itself but also *where* in the inventory the item is (either in the backpack, or wielded in either or both of the hands). This uses a new InventoryPosition datatype, and a method to get a list of items in the inventory associated with their inventory position. When *removing* items from the inventory (to wield, drop, or eat them), we want to make sure we remove from the right position, so this also introduces a `removeItemAtPosition` method to make that happen correctly. Finally, some of the tests for this stuff was getting really slow - I narrowed this down to runaway arbitrary generation for message Templates, so I've tweaked the Arbitrary instance for that type to generate smaller values. Change-Id: I24e9948adae24b0ca9bf13955602108ca9079dcc Reviewed-on: https://cl.tvl.fyi/c/depot/+/3228 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-23 r/2680 feat(xanthous): Add a command to describe an item in the inventoryGriffin Smith8-31/+139
Add a new DescribeInventory command, bound to I, to prompt for an item in the inventory (anywhere in the inventory, including wielded) and display a (new) panel describing it in detail. This description includes the description, the long description, and the item's physical properties (volume, density, and weight). Change-Id: Idc1a05ab16b4514728d42aa6b520f93bea807c07 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3227 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-23 r/2679 feat(xanthous) Generate random volume+density for itemsGriffin Smith9-25/+108
Generate random volumes and densities for items based on the ranges for those two quantities in the raw when building instances of items. Since this is the first time creating an item is impure, this also lifts entity generation into a (random) monadic context Change-Id: I2de4880e8144f7ff9e1304eb32806ed1d7affa18 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3226 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-23 r/2678 feat(xanthous): Track the volume and density of item typesGriffin Smith12-33/+255
Allow the itemType raw to have density and volume fields, both of which represent *intervals* of both density and volume (because both can hypothetically vary a bit). The idea here is that when we're making an *instance* of one of these items, we pick a random value in the range. Lots of stuff in this commit is datatype and typeclass instances to support things like intervals being fields on datatypes that get serialized to saved games - including a manual definition of Ord for Item since Ord isn't well-defined for intervals Change-Id: Ia088f2f75cdce9d00560297e5c269e3310b85bc3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3225 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-19 r/2677 fix(gws.fyi): Remove reference to freenodeGriffin Smith1-1/+1
I'm not on freenode anymore Change-Id: I72891f8db468cd318a069e4f409150717c6b9360 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3223 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-18 r/2676 feat(xanthous): Fistfighting builds knuckle callusesGriffin Smith8-20/+229
2000 ticks after the character damages their fists by hitting something, the character now develops calluses on their fists (scaled by *how* damaged they've become) that reduce the chance of them receiving additional damage from hitting things - up to a max of 5, which prevents *all* damage from fistfighting. This is all tracked in a new "Knuckles" struct in a new "Body" struct on the character datatype, which manages stepping itself forward as part of the Brain impl on the character. Change-Id: Ica269f16fb340fb25900d2c77fbad32f10c00be2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3222 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-18 r/2675 feat(xanthous): Add an auto-rest commandGriffin Smith6-12/+35
Add a command that automatically rests (essentially just stepping the game forwards) until the character's hitpoints are back to full. Currently due to the time it takes for the character to heal this takes a bit too long - my thought there is to make the per-step delay for autocommands different depending on the specific autocommand. Change-Id: I40378c29d3d9d19e9787af1f015bde65fd08868c Reviewed-on: https://cl.tvl.fyi/c/depot/+/3221 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-18 r/2674 feat(xanthous): Add configurable natural attacksGriffin Smith7-12/+69
Allow configuring the natural attacks (eg, part of their body rather than an item) of a creature. Each attack has a description and a damage associated with it. Change-Id: I69698a8ac4ee2da91e4c88e419593627519522a5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3220 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-18 r/2673 feat(gs/emacs): Bind g R to lsp-find-references in haskell-modeGriffin Smith1-0/+1
Change-Id: I49330e11a4cf402a4d06e7b657d3216eec9e5867 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3219 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-18 r/2672 feat(xanthous): Add an ooze creature typeGriffin Smith2-2/+14
This required making sayVerb optional, as oozes don't say anything Change-Id: I2c7f425ca26d92beef1097eda49d84f00c84c482 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3218 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-18 r/2671 feat(xanthous): Install qpdf in the shellGriffin Smith1-2/+4
This gets us the zlib-flate command line utility, which is useful for decompressing our zlib-compressed save files and poking around in the JSON Change-Id: Ia0d8259d261c4313322d68cc8409ba13f9fb570c Reviewed-on: https://cl.tvl.fyi/c/depot/+/3217 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-18 r/2670 feat(gs/home): Install gronGriffin Smith1-0/+1
this is pretty useful Change-Id: If79af3f8f3bd1d1e810f4af6eebfc618eb4c603b Reviewed-on: https://cl.tvl.fyi/c/depot/+/3216 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-18 r/2669 fix(xanthous): Wipe memoized vision when the game updatesGriffin Smith2-3/+9
If the game steps forward, entities could be moving around, so we need to wipe the memoized character vision. Change-Id: If6ea6a8c4bed7aefef90a0a2ab17eff0af9b9bbe Reviewed-on: https://cl.tvl.fyi/c/depot/+/3215 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-16 r/2668 feat(gs/emacs): Add command to pull down all assigned JIRA ticketsGriffin Smith1-1/+7
as org-mode headlines, using org-tracker-headlines-from-assigned-to-me Change-Id: Ie2ce8ec768702a71fb74c36024a3974c2d675571 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3214 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI