about summary refs log tree commit diff
path: root/users/tazjin
AgeCommit message (Collapse)AuthorFilesLines
2022-05-14 r/4076 refactor(tazjin/tgsa): move error handling one layer upVincent Ambo1-19/+20
this lays the groundwork for adding another handler and returning handler results as `anyhow::Result<rouille::Response>`. needed for the image redirect stuff. Change-Id: I909bd9c2f46f42ea759d50662d7bc36c1f408ed3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5609 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
2022-05-14 r/4075 refactor(tazjin/tgsa): factor out cache access helperVincent Ambo1-13/+21
factor out a function to access telegram posts from the cache, fetching them anew if required. a small behavioural change means that the program now takes a write lock when fetching a post, to avoid simultaneously fetching the same post many times (quite likely once it serves image redirects). Change-Id: If9c1429f86fb118dab90834f349cb222709c3a31 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5608 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
2022-05-14 r/4074 feat(tazjin/tgsa): Expire cached telegram entries after one hourVincent Ambo1-5/+22
Telegram expires certain links in messages after some (unknown) amount of time; this commit is the first step to working around that by providing an image URL proxy. In order to do that, we tick two important boxes here: 1. Store an extensible data structure in the cache. 2. Expire them periodically. Change-Id: Iba192d8b71db4493c942d1baf5680bd086f8f60b Reviewed-on: https://cl.tvl.fyi/c/depot/+/5607 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-05-13 r/4068 fix(tazjin/home): Move a persistent path to shared configVincent Ambo2-1/+1
Change-Id: Id92f5aafdfc93038b0813e8005c8be736f4e90e0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5602 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-05-12 r/4063 feat(tazjin/keys): Add zamalek_sk public keyVincent Ambo1-0/+1
Change-Id: I4a35c5cb691440c891af80290a3fd481e646815d Reviewed-on: https://cl.tvl.fyi/c/depot/+/5580 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-05-12 r/4062 chore(tazjin/nixos): Trust zerotier interface for TVL networkVincent Ambo1-0/+2
Change-Id: I621edeb4ed338b4b1e84de580e8d782b7b98716c Reviewed-on: https://cl.tvl.fyi/c/depot/+/5579 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-05-12 r/4061 feat(tazjin/nixos): Add pass-otp extensionVincent Ambo1-1/+4
This lets pass create TOTP tokens, which is very handy. Change-Id: I85b699087e83c3d18cd8840df11c4e27c85e1f3f Reviewed-on: https://cl.tvl.fyi/c/depot/+/5578 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
2022-05-12 r/4060 chore(tazjin/zamalek): Prepare for work stuffVincent Ambo1-1/+2
Change-Id: I3d6884f2e6ccf9d8429232bd142b6b3d35e13aa9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5577 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
2022-05-10 r/4058 style(tazjin/nixos/hidpi): Set DPI setting to 161Vincent Ambo1-1/+1
This results in a much more useful element size. Note that this still does not scale some core UI elements, such as the mouse cursor, at all. Change-Id: I7d4da485f0723740a7228a1561aaf50135c86032 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5575 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-05-10 r/4057 chore(tazjin/home): Set /depot as safe directory in gitVincent Ambo1-0/+1
This silences some new git warning about whatever. Change-Id: Iaa5225a307b850a756871fa5f494d687eb020fd7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5574 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-05-10 r/4052 fix(tazjin/zamalek): Set libinput click method to 'clickfinger'Vincent Ambo1-0/+2
This is much nicer than button areas on a large touchpad. Change-Id: I369f96f6b99cdf1803be1056b31fcfab8c0deae4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5569 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-05-10 r/4051 feat(tazjin/zamalek): Set additional power saving optionsVincent Ambo1-0/+7
Change-Id: Ia2e897b597df88b8a2d84d281917c00ca4b318db Reviewed-on: https://cl.tvl.fyi/c/depot/+/5568 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-05-10 r/4050 feat(tazjin/laptop): Enable geoclue2 for redshift & localtimeVincent Ambo2-3/+3
Change-Id: I716e67ae32072de998c6f4e970b9dd34c5a92032 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5567 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-05-10 r/4049 feat(tazjin/modules): Add HiDPI moduleVincent Ambo2-0/+18
Change-Id: Ib690ec25ebe10af4924735553a8315609b7cbc4e Reviewed-on: https://cl.tvl.fyi/c/depot/+/5566 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
2022-05-10 r/4048 feat(tazjin/nixos): Add system configuration for zamalekVincent Ambo4-0/+83
This is my new Huawei MateBook X. Change-Id: I32a8b77dd8f53b3c89bf63f448cd2880f9a457b7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5554 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su>
2022-05-10 r/4047 refactor(tazjin/nixos): Split up desktop/laptop configurationsVincent Ambo5-69/+83
Change-Id: I0f5d631491be0c811ad171510568aac097d2fddd Reviewed-on: https://cl.tvl.fyi/c/depot/+/5553 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su>
2022-05-10 r/4046 refactor(tazjin/nixos): Automatically include home configVincent Ambo2-17/+23
Adds a small module that automatically picks the right home configuration for each machine. For some reason, importing home-manager itself in this module causes infinite recursion. I've not looked into why, and left the import in the tverskoy config instead. Change-Id: Ie27109a3c4478b198ab646b2e179999cf053980e Reviewed-on: https://cl.tvl.fyi/c/depot/+/5552 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su>
2022-05-10 r/4045 refactor(tazjin/home): Split shared config into separate fileVincent Ambo2-75/+88
Change-Id: I898f1552f449e2d6bddc8e3e3a144d6c2490ce29 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5551 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su>
2022-05-10 r/4044 refactor(tazjin/home): Extract home manager configurationVincent Ambo2-85/+91
Change-Id: If12aca275029d2567fa420d762418ccd9e5ffcba Reviewed-on: https://cl.tvl.fyi/c/depot/+/5550 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su>
2022-05-10 r/4043 refactor(users/tazjin): Extract non-home persistence configVincent Ambo3-24/+39
This will be reused between machines. Change-Id: Ice7835ce7e63b00284e046606309e882412cda26 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5547 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su>
2022-05-10 r/4042 docs(tazjin/install-zfs): Add some notes for the ZFS installs I doVincent Ambo1-0/+116
I have to google all of this this each time otherwise. Change-Id: Ib7df0882e4681bd061f77a00b678641a7f37c58c Reviewed-on: https://cl.tvl.fyi/c/depot/+/5546 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su>
2022-05-10 r/4041 refactor(tazjin/nixos): Extract font configuration moduleVincent Ambo2-19/+25
Change-Id: I067d832155db61fb426ea3435e038231f321f71a Reviewed-on: https://cl.tvl.fyi/c/depot/+/5545 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su>
2022-05-10 r/4040 chore(tazjin/nixos): Remove strongswan overlayVincent Ambo2-12/+0
This is no longer required; said customer has switched to Tailscale. Change-Id: Iebe2fdfbf4013af86b7236e061cf4dbf47ac7c9e Reviewed-on: https://cl.tvl.fyi/c/depot/+/5537 Tested-by: BuildkiteCI Autosubmit: tazjin <tazjin@tvl.su> Reviewed-by: tazjin <tazjin@tvl.su>
2022-05-10 r/4039 refactor(tazjin/nixos): First step to extracting shared configVincent Ambo3-88/+97
There's some configuration shared betwene my physical machines which is just duplicated all over the place right now. What's the point of having Nix if you don't use it fully? Change-Id: Ic7e89f918d2517637b3d49617b4dc1a2cc6023b9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5536 Tested-by: BuildkiteCI Autosubmit: tazjin <tazjin@tvl.su> Reviewed-by: tazjin <tazjin@tvl.su>
2022-05-07 r/4014 chore(tazjin/emacs): Improve TV screen layout positioningVincent Ambo1-5/+5
Change-Id: Ic9a6b30c04382c57ccb8620786f8f6a091c8e306 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5532 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-05-04 r/4001 chore(users): reflect emacsGcc -> emacsNativeComp renamesterni2-2/+2
Change-Id: I0217b1e316767b48b79f23e9d644b00b7fcc2df2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5518 Reviewed-by: tazjin <tazjin@tvl.su> Reviewed-by: sterni <sternenseemann@systemli.org> Autosubmit: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
2022-04-28 r/3993 refactor(tazjin/blog): Update the 'best tools' postVincent Ambo1-31/+54
Some things were kinda out of date ... Change-Id: Idc8430299c76423a41fb6d952caff4696cc4d71f Reviewed-on: https://cl.tvl.fyi/c/depot/+/5508 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
2022-04-24 r/3990 fix(tazjin/emacs): Stop undo-tree's new file barfingVincent Ambo1-1/+5
undo-tree recently change dsome behaviour and started barfing "history backup files" all over the place. These are really annoying and this commit disables them completely. Change-Id: I1c4ac0b12ba12d1f45c3f0516d16ba4f1f090700 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5504 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-04-23 r/3989 chore(tazjin/tverskoy): Persist ~/.config/unity3dVincent Ambo1-0/+1
Change-Id: I88cd9590be69cf1e018438d4f55460f18dfa572a Reviewed-on: https://cl.tvl.fyi/c/depot/+/5503 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-04-21 r/3986 chore(3p/sources): Bump channels and overlaysVincent Ambo2-2/+2
Changes: * updated keycloak configuration for new version * migrate to emacs28 outside of //users, re-add emacs27 but with a warning attached urging people to migrate Change-Id: I3e5765a63934541f72f6c4a8673d3b4671850c93 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5501 Tested-by: BuildkiteCI Autosubmit: tazjin <tazjin@tvl.su> Reviewed-by: wpcarro <wpcarro@gmail.com>
2022-04-21 r/3984 chore(tazjin/keys): Update set of active SSH keysVincent Ambo2-4/+2
Change-Id: Ic3725ec88a3b1b5f9eb2dd52ba4ff8232906cbb1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5490 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-04-20 r/3982 chore(nixery): Housekeeping for depot compatibilityVincent Ambo1-3/+3
Cleans up a whole bunch of things I wanted to get out of the door right away: * depot internal references to //third_party/nixery have been replaced with //tools/nixery * cleaned up files from Github * fixed SPDX & Copyright headers * code formatting and inclusion in //tools/depotfmt checks Change-Id: Iea79f0fdf3aa04f71741d4f4032f88605ae415bb Reviewed-on: https://cl.tvl.fyi/c/depot/+/5486 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su>
2022-04-20 r/3977 fix(tazjin/tgsa): Preserve newlines in messagesVincent Ambo3-4/+26
Change-Id: I9e2d7038357a5510898d153740ae0c0e1f7a8a3a Reviewed-on: https://cl.tvl.fyi/c/depot/+/5483 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-04-20 r/3976 style(tazjin/tgsa): Move attribution outside of quote bodyVincent Ambo1-3/+3
When quoting a post containing a tgsa quote, the entire quote was previously erased. Doing it this way will leave the Telegram link in it. Change-Id: I53bfadd0615734f7e219b20509858d9b73c908a4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5482 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-04-19 r/3975 chore(tgsa): Remove shortening of image linksVincent Ambo1-25/+7
The link shortening was in place because posts with image URLs that were too long would not get recognised as valid image links. astral has fixed this after my report: https://forums.somethingawful.com/showthread.php?threadid=3999866 I verified this with the example post that has a bunch of images and such in it. Thanks astral! Change-Id: I60e90fd52020ee5464c931a4dde91382c8a149ab Reviewed-on: https://cl.tvl.fyi/c/depot/+/5481 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-04-17 r/3974 feat(tazjin/tgsa): Handle messages with audio attachedVincent Ambo1-0/+15
Audio can not be embedded on these stupid dead comedy forums, but people can click through to listen. Change-Id: I6e28636e69e424bb8cbc6b92963d1b28b3c04bf6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5478 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-04-17 r/3973 chore(tazjin/tgsa): Update quote footer textVincent Ambo1-1/+6
Change-Id: I39ea4a40d9265d06193e3bddede157b10066da06 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5477 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-04-16 r/3967 feat(tazjin/tgsa): cache generated bbcode in-memory per messageVincent Ambo1-8/+27
Change-Id: Id36266ef20585bfbdffb197ab08aba2978cb86cb Reviewed-on: https://cl.tvl.fyi/c/depot/+/5471 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-04-16 r/3966 feat(tazjin/polyanka): deploy a tgsa instanceVincent Ambo3-0/+30
Change-Id: I8a32c093eb0ac8f6a0c3cfbb358d46d97d0c3b17 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5469 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
2022-04-16 r/3965 feat(tazjin/tgsa): add "web interface" for thisVincent Ambo3-9/+442
Change-Id: I1619f0ceec2f83f4728d7de006a08b2ce6148e59 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5468 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
2022-04-16 r/3964 feat(tazjin/tgsa): Support linked video thumbnailsVincent Ambo1-29/+44
I couldn't figure out how to get the ID for the `single=1` mode for linking to a video directly, but linking to the post in embed mode should also work. Change-Id: Iebbd62724c36cee227a7c24968617ab418e8bd0c Reviewed-on: https://cl.tvl.fyi/c/depot/+/5467 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
2022-04-16 r/3963 feat(tazjin/tgsa): Implement initial tg embed -> BBcode featuresVincent Ambo5-0/+1082
Supports only posts with plain photos, and loses all message formatting, but it's getting there. Change-Id: I9e4afcf3072d1e0724521ccbdc1338fe4f8d5ebe Reviewed-on: https://cl.tvl.fyi/c/depot/+/5466 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
2022-04-15 r/3950 feat(tazjin/polyanka): Grow root partition on bootVincent Ambo1-0/+3
Change-Id: I17e5a988b4be0ac764ce4cf6db243728165e753b Reviewed-on: https://cl.tvl.fyi/c/depot/+/5449 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-04-11 r/3942 chore(3p/sources): Bump channels & overlayssterni1-0/+3
Use nixos-unstable-small which fixes CVE-2018-25032 (out of bounds write while compressing). * //users/grfn/xanthous: - Supporting random-fu 0.3 requires considerable changes and patching random-extras (https://github.com/aristidb/random-extras/pull/5). For now we downgrade random-fu and its dependency rvar to 0.2.*, forcing us to build xanthous with GHC 8.10.7, due to random-fu 0.2.* not supporting that version. Nix expressions for the downgraded packages are checked in to avoid the potential need to compile Haskell at pipeline eval time. - generic-arbitrary exposes a GenericArbitrary newtype now. This means we no longer have to implement it in xanthous downstream and patch generic-arbitrary to expose the GArbitrary type class. - Minor adjustments for lens 5.0: Xanthous.Game.Memo: clear needs to use ASetter' instead of Lens' Xanthous.Data.EntityMap: TraversableWithIndex no longer has an itraversed function. - Xanthous.Orphans: adjust for aeson's KeyMap, use KM.size explicitly instead of relying on MonoTraversable's length * //nix/buildLisp: the CCL issue has resurfaced, disabling the implementation once again. * //3p/arion: remove, as depot uses the nixpkgs package of it anyways. * //users/wpcarro: accomodate GHC 9.0.1's stricter parsing of operators. * //users/tazjin: disable rustfmt as it stopped respecting settings * //3p/overlays: upgrade home-manager until fix for serivce generation has landed upstream * //users/grfn/system: remove rr override, as the pinned commit is part of the 5.5.0 release shipped by nixpkgs. Change-Id: If229e7317ba48498f85170b57ee9053f6997ff8a Reviewed-on: https://cl.tvl.fyi/c/depot/+/5428 Tested-by: BuildkiteCI Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: grfn <grfn@gws.fyi> Reviewed-by: tazjin <tazjin@tvl.su> Reviewed-by: wpcarro <wpcarro@gmail.com>
2022-04-09 r/3939 feat(tazjin/tverskoy): Include open_eid moduleVincent Ambo1-0/+2
Change-Id: I61e46db75ccfdc4bbe7cd5d66ab7921e8d87d599 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5432 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
2022-03-31 r/3926 feat(tazjin/tverskoy): Support local configurationVincent Ambo2-1/+2
I need this for some work config which I can't put in public git :/ Change-Id: Id6a160d9dd9c1aedace68aca732744da22e413c5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5427 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
2022-03-31 r/3925 feat(tazjin/emacs): Add randr layout with TV screen above laptopVincent Ambo1-0/+10
Change-Id: I302f9d86d7325ce97c95fd61deb9ff722f9d0ce1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5426 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
2022-03-30 r/3922 feat(tazjin/tverskoy): Install & persist electrumVincent Ambo1-0/+2
Change-Id: If17587cd84b501741ad1a58c761473b5a2268deb Reviewed-on: https://cl.tvl.fyi/c/depot/+/5423 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su>
2022-03-22 r/3919 fix(tazjin/tverskoy): Persist zerotier and tailscale stateVincent Ambo1-0/+3
Change-Id: Iede2e6afaa7484edbd98a8df08eb83d181650ddf Reviewed-on: https://cl.tvl.fyi/c/depot/+/5399 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
2022-03-21 r/3918 feat(tazjin/tverskoy): Enable tailscale serviceVincent Ambo1-0/+2
Change-Id: Ib3102defc8a6027e924067876505ca0532f24b86 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5388 Autosubmit: tazjin <tazjin@tvl.su> Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI