about summary refs log tree commit diff
path: root/users/grfn (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-11-08 r/3027 chore(gs/xanthous): Gitignore more state filesGriffin Smith1-0/+3
Gitignore: - *.save, which I use for save-games I want to use as test case reproductions - .tasty-rerun-log, which tasty-rerun uses to save which tests failed on the last run - cabal.project.local-*, since I've got a file on my machine called cabal.project.local~0 so apparently that's a thing now Change-Id: I07c391fa25a84e96efca6771997f280ff12826b5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3818 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-11-08 r/3026 feat(gs/xanthous): Enable tasty-rerunGriffin Smith5-6/+10
Rerunning only failed tests is nice! To use this, run `cabal new-run test -- --rerun` Change-Id: I9dc4d69749c3e3d5ba8d1661a2fdf73e49cd8ad5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3816 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
2021-11-08 r/3024 fix(gs/home): Move dunst shortcuts into i3 configGriffin Smith1-7/+4
Dunst as of 1.7.0 apparently no longer supports keyboard shortcuts (so much for semantic versioning) in favor of having them be bound in the window manager to invocations of `dunstctl`. Change-Id: Ic3f10a29061c19ea0002e0f6d596baeafa58d968 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3815 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-11-08 r/3023 fix(gs/xanthous): Don't take up half-width for promptsGriffin Smith1-4/+2
txtWrap takes up half the available width in the viewport, causing the input for prompts to display way too far to the right of the actual prompt. I'm not aware of any actual mutiline prompts, so using txt here makes way more sense. Change-Id: I7f62066f1b07b5d6ba2c7ffed77c87ae33b1dfa5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3814 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-11-07 r/3022 feat(gws.fyi): Mention xanthous ssh serverGriffin Smith1-1/+2
Change-Id: Icda55f85bcbb8e7743834b847dd595d31a138eb9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3813 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-11-07 r/3021 feat(gs/mugwump): Run xanthous serverGriffin Smith3-2/+50
Add a nixos module for running the xanthous server in a docker container, and install it on mugwump including a prometheus scrape config. Change-Id: Ifeb315845b7eef2ee33af98fa3f71acdd3d9fe6b Reviewed-on: https://cl.tvl.fyi/c/depot/+/3812 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-11-07 r/3020 feat(xanthous/server): Add simple prometheus metricsGriffin Smith4-11/+589
Add a prometheus exporter and some simple prometheus metrics, so that I can look at dashboards and get alerts for things like lots of connections Change-Id: Ic1e0568200299dc852b74da647a6354267ee7576 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3811 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-11-07 r/3019 feat(xanthous/server): Add derivation for docker imageGriffin Smith2-1/+26
This appears to work pretty nicely! Change-Id: Icf52f58225ee2837b30ba6187ae3ba3c539de9df Reviewed-on: https://cl.tvl.fyi/c/depot/+/3810 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-11-07 r/3018 feat(xanthous/server): Run with --disable-savingGriffin Smith1-0/+1
Don't write to my disk, please, random internet people. Change-Id: I1d199fc3675f6ec7630f598bbc33dc7ef7e02e68 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3809 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-11-07 r/3017 feat(gs/xanthous): Allow disabling savingGriffin Smith4-34/+68
Add a command-line parameter to disable the Save command, so people don't save and fill up my disk when I'm running this on the internet. Change-Id: I2408e60de2d99764ac53c21c3ea784282576d400 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3808 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-11-07 r/3016 fix(xanthous/server): Accept password authenticationGriffin Smith1-0/+6
Accept password authentication in addition to public key authentication, but ignore the actual password, so that clients without ssh keys configured (or configured to send no ssh keys) can authenticate. Change-Id: I86130b9725d1928ac45b5db55f18c09687ee0fd5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3807 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
2021-11-07 r/3015 feat(gs/xanthous): Add SSH server applicationGriffin Smith9-2/+1912
Add the start of an ssh-compatible server application for playing Xanthous over ssh. The idea here is that the user can ssh with whatever username they like (defaulting obviously to their login username) and then that gets passed as the --name flag to xanthous as they play. Change-Id: I39eec288ac8e22a165e859479888d78158a58818 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3806 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
2021-11-06 r/3012 fix(gs/xanthous): Fix numAliveNeighbors{,M} on the edgeGriffin Smith2-11/+70
numAliveNeighbors was doing bounds checks too aggressively, resulting in always returning 8 for points on the edge, meaning walls weren't getting properly created for those points, making edges of the map open to walk through. Change-Id: Iada6be46ce7cc77ce99a320b7310008898b89273 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3805 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-11-06 r/3011 fix(gs/xanthous): Don't gen dupe tutorial messagesGriffin Smith2-7/+13
Don't generate tutorial messages on levels other than the first. Change-Id: I7681377461b92f5d5015931b0088bef9d358d2e4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3804 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-11-06 r/3010 refactor(gs/xanthous): Use a Word for the level numberGriffin Smith3-10/+20
Using a signed Int here is a little silly, since we can never have negative levels. Change-Id: Ibe03be5014226e07dfa6f78d8360301bc1b7c9b1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3803 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-11-06 r/3009 fix(gs/xanthous): Update hie.yaml for new app/ directoryGriffin Smith1-1/+1
Change-Id: I87c82f22313285085ac53485613b7d9f91b52ed2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3802 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-11-06 r/3008 feat(gs/xanthous): Default to the current save fileGriffin Smith8-31/+93
When saving, default to the save file that was loaded for the game if any. To support this, this also makes text prompts support a default, which will be used if no value is input. Change-Id: I72a826499d6e987b939e3465a2d29167e53416be Reviewed-on: https://cl.tvl.fyi/c/depot/+/3801 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-10-30 r/2996 fix(gs/xanthous): Preserve character state when going up stairsGriffin Smith1-1/+7
Carry over everything except the character's position when going up stairs, so that eg the character doesn't lose everything they picked up and instantly heal to full when going up a level. Change-Id: I08513578a72f2410a363bbadbb273d95826a3f1b Reviewed-on: https://cl.tvl.fyi/c/depot/+/3766 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-10-30 r/2995 fix(gs/emacs): Fix directory for xanthous capture templateGriffin Smith1-1/+1
Change-Id: Ie06086f919656a3ad3673934a1f1c2d266622621 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3765 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-10-30 r/2994 feat(gs/xanthous): Allow throwing rocksGriffin Smith15-87/+450
Implement a first pass at a "fire" command, which allows throwing rocks, the max distance and the damage of which is based on the weight of the item and the strength of the player. Currently the actual numbers here likely need some tweaking, as the rocks are easily throwable at good distances but don't really deal any damage. Change-Id: Ic6ad0599444af44d8438b834237a1997b67f220f Reviewed-on: https://cl.tvl.fyi/c/depot/+/3764 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-10-30 r/2993 feat(gs/xanthous): Send message when restingGriffin Smith2-1/+5
Change-Id: Ib1e7ae6dfcbc2d2e86a28b401e67cd5dd22d6281 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3763 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-10-20 r/2983 feat(gws.fyi): Host ssh keyGriffin Smith1-1/+7
Change-Id: I387ead1daa65a3b39c3771f95f5f6734aebabea9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3737 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
2021-10-20 r/2982 feat(gs/home): Upgrade discord to 0.0.16Griffin Smith1-2/+2
Change-Id: I2300fc7345dcd644b954c1232bc8a5f0a1858d00 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3736 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
2021-10-14 r/2971 refactor(grfn/keyboard): use pkgsCross.avr's default gccsterni1-1/+1
The default gcc version for pkgsCross.avr.buildPackages is 10.x, which seems to be able to build the layout derivation just fine. Change-Id: Ib7790419f38121ea2b1a09c790ef3a04afc0f9f8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3712 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
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