about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorFilesLines
2024-12-30 r/9045 fix(users/flokli/nixos-tvix-cache): use escapeSystemdExecArgsFlorian Klink1-1/+2
escapeSystemdExecArgs is the function that should be used to escape Exec* service lines. See https://github.com/NixOS/nixpkgs/blob/a72b1b3c658f8855f9a3f7858b084695a78e4591/nixos/lib/utils.nix#L122-L128 Reported-By: matrix:u/lukas:luflosi.de Change-Id: Ia3a628db221a30310154c060a6e29ccb2c94c352 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12930 Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Reviewed-by: Ilan Joselevich <personal@ilanjoselevich.com>
2024-12-30 r/9044 chore(tvix): simplify Cargo.tomlFlorian Klink13-212/+212
Use dotted keys where we'd else have maps with a single key. Change-Id: I9389e0fedddad1cf65f870a3a68415a0defaa259 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12929 Reviewed-by: Ilan Joselevich <personal@ilanjoselevich.com> Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
2024-12-29 r/9043 fix(tvix/shell): s/buf-language-server/buf/Florian Klink1-1/+1
'buf-language-server' was removed as its development has moved to the 'buf' package. Change-Id: If1ef36ed54926644debc914817bf4afea8bf2264 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12928 Reviewed-by: lukegb <lukegb@tvl.fyi> Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
2024-12-29 r/9042 chore(3p/sources): Bump channels & overlays (2024-12-22)sterni2-21/+21
* //users/flokli/keyboards/chocofi: The hash got invalidated somehow which I've updated (to what https://buildkite.com/tvl/depot/builds/37991#0193f512-78ba-491f-af60-a23e987def95 showed). This seems to have triggered an update of ZMK and some options have gotten renamed. Change-Id: I5a62cd4636c23bfdeae671da7b8acb0f02cc2263 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12905 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
2024-12-29 r/9041 chore(3p/sources): Bump channels & overlays (2024-12-02)sterni13-28/+39
* //tools/nixery/popcount: replace removed buildGoPackage with buildGoModule. * //users/aspen/system/system/modules: pkgs.nerdfonts has been removed. Instead we have a pkgs.nerd-fonts attribute set that contains all fonts as individual derivations. * //users/tazjin/presentations: The ms package was removed from texlive for some reason in the latest release. Replace it with the packages it bundles (according to CTAN). * //tvix/verify-lang-tests: Test on latest Nix release 2.25.2. * //tvix/*-go: regenerate code from protobufs. Change-Id: I19fcb3a0267f929f6e7388aa69ad99ac53b62236 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12859 Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: tazjin <tazjin@tvl.su> Reviewed-by: flokli <flokli@flokli.de> Reviewed-by: aspen <root@gws.fyi> Tested-by: BuildkiteCI
2024-12-27 r/9040 feat(users/flokli/nixos-tvix-cache): increase scraping intervalFlorian Klink1-1/+2
This provides more resolution in the dashboards. Change-Id: I06e7260250e58fe62bbda41b67d84e0c5cacfbd2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12927 Reviewed-by: raitobezarius <tvl@lahfa.xyz> Tested-by: BuildkiteCI Reviewed-by: Jörg Thalheim <joerg@thalheim.io> Autosubmit: flokli <flokli@flokli.de>
2024-12-27 r/9039 fix(users/flokli/nixos-tvix-cache): bump trace size limitFlorian Klink1-1/+2
We produce traces bigger than what tempo accepts by default, causing traces to be rejected with TRACE_TOO_LARGE and to then be incomplete. Bump the max size. Change-Id: I8caa245d14db683853485ee5625c9662ea51ce29 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12926 Autosubmit: flokli <flokli@flokli.de> Reviewed-by: raitobezarius <tvl@lahfa.xyz> Tested-by: BuildkiteCI
2024-12-27 r/9038 docs(users/flokli/nixos-tvix-cache): don't use mkForceFlorian Klink1-1/+1
There's no need to mkForce anything in that list. Nix reads nix-cache-info to determine priority. Change-Id: I08797ed25348f52f5696f80558d206b73d20dead Reviewed-on: https://cl.tvl.fyi/c/depot/+/12925 Autosubmit: flokli <flokli@flokli.de> Reviewed-by: raitobezarius <tvl@lahfa.xyz> Tested-by: BuildkiteCI
2024-12-27 r/9037 fix(users/flokli/nixos-tvix-cache): drop private bind mountsFlorian Klink1-4/+1
The mount didn't get applied for some reason, explicitly configure the path. Change-Id: Ie41eb3c1d5f6416493211fb77709aaeecf61edf0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12924 Autosubmit: flokli <flokli@flokli.de> Reviewed-by: raitobezarius <tvl@lahfa.xyz> Tested-by: BuildkiteCI
2024-12-27 r/9036 fix(users/flokli/nixos-tvix-cache): set timeInterval for metrics DSFlorian Klink1-0/+3
The data source defaults to 15s of time interval. As alloy scrapes every 60s only, this causes watching dashboards with a smaller time range to just not show any data, like the CPU graph being empty for a time range < last 12h. Fix by setting time interval to 60s. Co-Authored-By: WilliButz <willibutz@posteo.de> Change-Id: Ife306b2fda968654cad818a82f99e0011819be3c Reviewed-on: https://cl.tvl.fyi/c/depot/+/12923 Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Reviewed-by: raitobezarius <tvl@lahfa.xyz>
2024-12-27 r/9035 fix(users/flokli/nixos-tvix-cache): BindPaths is serviceConfigFlorian Klink1-3/+3
Putting this into UnitConfig won't work, so the bind mount didn't happen, causing the blobs to be created on the SSD too. This was already deployed and the data migrated over. Change-Id: Ie30c8f458cdad8b764817a48a048ec3ca3c18e64 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12922 Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de> Reviewed-by: raitobezarius <tvl@lahfa.xyz>
2024-12-27 r/9034 fix(tvix/nar-bridge): set FileSize to NarSizeFlorian Klink1-0/+4
Nix and Lix both report this quite wrong when showing progress, they assume 0.00 MiB of download size: ``` these 3 derivations will be built: /nix/store/m6dkr67hk87lpcz9wv8f2mp2zrgsyfp9-nix-2.24.11.drv /nix/store/zcfi6vs0z18309asw8fpa9v3665av44v-niv-0.2.22.drv /nix/store/g4kvzrs1kk9i13vaa8q1r0y4hgsqsnlp-dev-env.drv these 112 paths will be fetched (0.00 MiB download, 2649.76 MiB unpacked): /nix/store/3qzlg8h5qc1slypy99aafdcgkzj6974h-OneTuple-0.4.2 /nix/store/pp4540rig52fnj66kz1kiaj1000ja9v0-QuickCheck-2.14.3 /nix/store/416aqss6p59w6v92127hkz04v0bclx21-StateVar-1.2.2 /nix/store/b5f93spm2cl9g6x73dnx7ns5irs739fz-aeson-2.1.2.1 /nix/store/nqnx6k6y103rargdz2gai2rmi389zn6n-aeson-pretty-0.8.10 /nix/store/11wc4s6a6qi98lxikacw746slhmj5dl7-ansi-terminal-1.0.2 /nix/store/yy7j66av9lwh3lvbxp1zv7572wb4l7dj-ansi-terminal-types-0.11.5 /nix/store/cn6m459cbacdwkvjllgy5hkzf045yc1g-appar-0.1.8 […] ``` For now, set FileSize to NarSize - it's not more wrong than it was before, Nix already supports content encoding for compression (via curl). Reported-On: https://git.lix.systems/lix-project/lix/issues/606 Change-Id: Ia53506ecf6678ad298f759c95a69feb441cbc26d Reviewed-on: https://cl.tvl.fyi/c/depot/+/12919 Reviewed-by: raitobezarius <tvl@lahfa.xyz> Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
2024-12-27 r/9033 test(tvix/nar-bridge): add NARInfo handler testsFlorian Klink2-0/+175
Change-Id: I245ab38c30bb27c941274b2621aecccb695dacd0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12918 Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Reviewed-by: raitobezarius <tvl@lahfa.xyz>
2024-12-27 r/9032 test(tvix/nar-bridge): start testing handlersFlorian Klink5-49/+870
We currently only had some integration tests (as part of tvix-boot) testing nar-bridge functionality as a smoketest, but with axum-test we can test individual handlers and peek at the store afterwards, which is much more granular. This adds tests for the nar-specific request handlers. Change-Id: I7f2345df89ac43b9b372ecc66f696e95e2fcad18 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12916 Tested-by: BuildkiteCI Reviewed-by: raitobezarius <tvl@lahfa.xyz> Autosubmit: flokli <flokli@flokli.de>
2024-12-27 r/9031 refactor(tvix/nar-bridge): move narinfo_str gen to helperFlorian Klink1-14/+18
Change-Id: I2d3b135f63f17adc540d63d3ecaef4fb555bca74 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12917 Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Reviewed-by: raitobezarius <tvl@lahfa.xyz>
2024-12-27 r/9030 refactor(tvix/store): expose fixtures, make NAR_CONTENTS constFlorian Klink12-187/+200
Allow reusing CASTORE_NODE_* and NAR_CONTENTS_* from other crates. Also, there's no need for NAR_CONTENTS_* to be Vecs of bytes, these can just be [u8; _]. Change-Id: I435c08a9d20f6a68266d0c9a70bfc7fdb618ce42 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12915 Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de> Reviewed-by: raitobezarius <tvl@lahfa.xyz>
2024-12-27 r/9029 feat(users/flokli/nixos-tvix-cache): put metadata on SSDFlorian Klink1-10/+10
Move the Directory and PathInfo storage to the SSD, and only bind-mount the blob storage from the HDD. This should improve IO for random access. Change-Id: Icf9408a879dec8a52541953682ffac25b31e73d3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12921 Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de> Reviewed-by: raitobezarius <tvl@lahfa.xyz>
2024-12-26 r/9028 docs(sterni/mblog/maildir): add more referencessterni1-4/+6
Change-Id: Ie3367d05c1cf76ee98501f0527c1da6f3282b4fe Reviewed-on: https://cl.tvl.fyi/c/depot/+/12920 Reviewed-by: sterni <sternenseemann@systemli.org> Autosubmit: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
2024-12-26 r/9027 refactor(sterni/mblog/mail-note): make dependency on config explicitsterni2-3/+3
We reuse the common buffer size setting from mblog for convenience. Eventually we probably want to make mail-note an independent library, so it's good to make this internal dependency explicit and not a blanket USE-PACKAGE, so the amount of used symbols from config doesn't increase. Change-Id: I88458493c90d9f52410e34ed2a1db99be751b901 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12914 Reviewed-by: sterni <sternenseemann@systemli.org> Autosubmit: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
2024-12-26 r/9026 fix(3p/lisp/mime4cl): make MIME-BODY-STREAM always return characterssterni7-4/+42
Because OPEN-DECODED-FILE-PORTION only knows about transfer encodings it would only return a character stream for 7bit encoded bodies. This causes inconsistent behavior where some bodies would return binary and some character streams. To fix this, we specialize MIME-BODY-STREAM for MIME-TEXT parts which may or may not be a good enough solution. We may actually want to make MIME-BODY-STREAM binary always and let the user handle decoding?! This may be a good idea to take care after yet another stream machinery redesign. Since the mime4cl test suite doesn't test MIME-BODY-STREAM (much), add a message generated by notemap that hits this issue to the mblog golden test suite. Change-Id: Ie340c42ced6c693af9b3c84b177408d6b6d2c9c4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12913 Reviewed-by: sterni <sternenseemann@systemli.org> Autosubmit: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
2024-12-26 r/9025 chore(users/sterni/mblog): rename apple-note to mail-notesterni6-60/+60
The type identifier Apple uses is com.apple.mail-note, so “Mail Note” is actually the best way to refer to this format. Not only doesn't it include a trademark, but it's also more accurate. The iOS and macOS Notes.app(s) allow authoring Notes to be saved in iCloud which seems to use a different API and/or storage format (at least these notes are no longer accessible via IMAP). In this sense they are “Apple Notes”, but not “Mail Notes”. Change-Id: I2fd3d3bd253ed39adf7965008290f7d1e622831d Reviewed-on: https://cl.tvl.fyi/c/depot/+/12815 Autosubmit: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
2024-12-26 r/9024 test(sterni/mblog/golden): check mblog against expected outputsterni6-0/+396
This should allow for refactors with more confidence as we can make sure base functionality stays the same. It is important to test image extraction, so unfortunately we need to check in a base64 rendering of an image file. I've used //users/tvlbot.jpg, so git should at least be able to deduplicate the extracted content. Note that this was achieved by altering the note message since I wasn't able to add the picture in the iOS Notes.app without the image being recompressed. To get extra benefit, we also add the test note to the mime4cl test suite. The expected output can be updated with mblog $(mg build :maildir) expected Change-Id: I0aa493b206439018ad89745bacbd47af78bd1396 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12911 Tested-by: BuildkiteCI Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: sterni <sternenseemann@systemli.org>
2024-12-25 r/9023 fix(3p/lisp/mime4cl/benchmark): fix mime type of attachmentsterni1-1/+1
Change-Id: I6a34622cb0a5dc80f82b64bac8da06f9e1d612d8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12910 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI Autosubmit: sterni <sternenseemann@systemli.org>
2024-12-25 r/9022 feat(aspen/web/orgExportHTML): allow bringing your own config.elsterni1-1/+2
`configFile` is chosen to match the terminology used in NixOS modules. I think this is quite useful since you can do a lot via the config file since you can not only set the HTML export setting via the org file header, but also through various emacs variables (see <https://orgmode.org/manual/HTML-specific-export-settings.html>). Change-Id: If4d66348e3043f62782106e7fd34f5cf5c7071a4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12651 Reviewed-by: aspen <root@gws.fyi> Autosubmit: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
2024-12-25 r/9021 fix(users/Profpatsch/alacritty): work around missing /etc/bus/ddcciProfpatsch1-14/+22
For some reason the driver does not mount the bus sometimes, in that case just call the tool directly without a specific bus, so we get at least some sort of brightness adjustment (lol). Change-Id: Ie8fe8c500fb1025609b569715e681e053e6e06ed Reviewed-on: https://cl.tvl.fyi/c/depot/+/12909 Reviewed-by: Profpatsch <mail@profpatsch.de> Tested-by: BuildkiteCI
2024-12-25 r/9020 feat(sterni/nix/html): flatten lists enclosed by an elementsterni2-3/+15
Currently nix/html requires that the content of an element is either an HTML string (which may or may not be generated by the library) or a flat list of HTML strings (which may or may not be generated by the library). I've found that this requirement makes authoring more complex pages that have programmatically generated parts cumbersome since one needs to take care that returned lists are appended, not included as an element. This leads to confusing code and annoying errors. We don't really care about the nesting of a content list as long as the order is clear, so we can just flatten the list making life a little easier: (<main> { } [ (<section> { } (<h2> { } "static section")) listOfGeneratedSections (<section> { } (<h2> { } "another section")) ]) Change-Id: I06016a8eff01d34d7eaea7798a00ed191115f9c8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12908 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI Autosubmit: sterni <sternenseemann@systemli.org>
2024-12-23 r/9019 refactor(aspen/orgExportHTML): use default emacssterni1-7/+1
In r/4000, I switched orgExportHTML to Emacs 28 (which bundles org by default) when nixpkgs defaulted to Emacs 27. Since nixpkgs now uses Emacs 29 by default, this is no longer necessary. Change-Id: I6d700e8508be77a1b9866557403a5a4ecaa005f7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12569 Tested-by: BuildkiteCI Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: aspen <root@gws.fyi>
2024-12-23 r/9018 chore(3p/overlays/tvl): drop obsolete niri overridesterni1-21/+0
The pinned commit is contained in 0.1.10 and 0.1.10.1. Change-Id: I966b2b2aa8b9072e624d1488f9ea23c06348fa5d Reviewed-on: https://cl.tvl.fyi/c/depot/+/12906 Tested-by: BuildkiteCI Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: flokli <flokli@flokli.de>
2024-12-22 r/9017 feat(sterni/git-only-push): support force pushingsterni1-3/+8
This is occasionally necessary. --force-with-lease should also be supported in the future, unfortunately getopts(1) doesn't have --long option support. Change-Id: Ib054009f48585b1a52ed041a51bcaf7e32dca1b3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12904 Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
2024-12-22 r/9016 feat(sterni/git-only-push): allow using git cherry-pick -xsterni1-3/+8
I've noticed git only-push is quite useful for creating backports for nixpkgs stable branches which we need git cherry-pick -x for. Change-Id: Ie20248d3d0c5fee5cdbd3b3a078439a99f597c02 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12903 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI Autosubmit: sterni <sternenseemann@systemli.org>
2024-12-22 r/9015 refactor(sterni/git-only-push): remove superfluous usage callsterni1-1/+0
Change-Id: I98f8954a12c3198eb9c45ddabe7f3448caba7e5d Reviewed-on: https://cl.tvl.fyi/c/depot/+/12902 Autosubmit: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
2024-12-21 r/9014 chore(sterni/machines/ingeborg): remove gopher related configssterni3-28/+0
The gopher server has been disabled for a while and I'm probably not going to revive it any time soon (though I should fix some stuff on spacecookie soon-ish…). Change-Id: I6ef6bbfc013f9924e2d2b7ba116285a32406e5a7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12901 Reviewed-by: sterni <sternenseemann@systemli.org> Autosubmit: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
2024-12-21 r/9013 feat(sterni/git-only-push): isolate given commits and push to refsterni2-0/+136
Small git subcommand that enables you to push a subset of (independently apply-able) commits from a local chain of commits to a remote ref, e.g. for review. Useful for a workflow where you work on a chain of commits and want to submit the ones that have been finished for review without rebasing the chain. Change-Id: I7717fe37867acdd826bc03a578104a0c3b2cbf71 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12900 Reviewed-by: sterni <sternenseemann@systemli.org> Autosubmit: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
2024-12-20 r/9012 fix(sterni/emacs): get emacs to use default monospace for unicodesterni1-6/+20
I've recently set JetBrains Mono to be my default monospace font because it has better Unicode coverage than Bitstream Vera Mono and should consequently include all BQN symbols. However when investigating why 𝕊 was weirdly small, I discovered that it was using GNU FreeSerif for some reason. As it turns out, Emacs uses the default font (or the system wide default monospace font if unset) for ASCII only. Beyond ASCII emacs falls back to the random assortment that is fontset-default. Using (set-fontset-font <fontset> NIL …) doesn't work – neither for preventing a fallback to fontset-default from fontset-startup nor for prepending a font to all ranges of fontset-default. Especially the former seems to contradict the Emacs documentation. The only solution I could come up with, is to set the relevant charsets explicitly in fontset-startup and to never touch the default font face. Change-Id: I640b3207e3cc3449ecd422db0e2ed93fb7d3521f Reviewed-on: https://cl.tvl.fyi/c/depot/+/12899 Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
2024-12-20 r/9011 fix(nix/writeTree): also shell escape path nodessterni1-1/+1
We allow strings with context that represent paths (since they qualify as `pathLike`). While store path (names) may not contain any characters that are meaningful in shell, they may contain directories and/or files with such names since it's permissible in POSIX. To fix this, we convert the given value `v` to a shell argument in two stages: 1. Use `${v}` to coerce the value to a string while importing any necessary paths to store. 2. Escape the resulting string for use as an argument. Change-Id: Ib989b50df2a921c2abcd1ebc7ca0ff6e2bb79088 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12898 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI Autosubmit: sterni <sternenseemann@systemli.org>
2024-12-20 r/9010 feat(sterni/exercises/lib): add Diagonals BQN functionsterni1-0/+3
Retrieves all diagonals of a two dimensional array (which have differing lengths). Useful to solve e.g. Project Euler problem 11 (<https://projecteuler.net/problem=11>). Change-Id: I853bc6eaaf869326d84d8e789fee9995f5a332d8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12897 Autosubmit: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
2024-12-20 r/9009 fix(users/flokli/nixos-tvix-cache): bump nginx read timeoutzimbatm1-0/+3
This is a bandaid until we have a proper fix. Change-Id: Id9f0bab5f309a7796c1efee23071013618c6dd12 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12896 Autosubmit: Jonas Chevalier <zimbatm@zimbatm.com> Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de>
2024-12-17 r/9008 feat(users/Profpatsch/alacritty): implement varlink SetColorSchemeProfpatsch1-0/+80
``` varlinkctl call \ /run/user/1000/de.Profpatsch.alacritty.ColorScheme \ de.Profpatsch.alacritty.ColorScheme.SetColorScheme \ '{ "colorScheme": "prefer-light" }' ``` Change-Id: Id8ffb03599f4aa716264ec3832c7b5948c7673cb Reviewed-on: https://cl.tvl.fyi/c/depot/+/12895 Reviewed-by: Profpatsch <mail@profpatsch.de> Tested-by: BuildkiteCI
2024-12-16 r/9007 feat(users/Profpatsch/alacritty): add modus & ef themesProfpatsch3-2/+48
Change-Id: I133f29e38f1e9c9c8b75468993b97951aff3e9da Reviewed-on: https://cl.tvl.fyi/c/depot/+/12894 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de>
2024-12-15 r/9006 feat(tvix/nix-daemon): instrument for TvixDaemonFlorian Klink1-1/+4
This makes it easier to see what's being communicated, by setting `RUST_LOG=nix_daemon=debug`. Change-Id: Ifcd89ff6c5c1727e97569e29d4f63993cc37ed8e Reviewed-on: https://cl.tvl.fyi/c/depot/+/12884 Tested-by: BuildkiteCI Reviewed-by: Vladimir Kryachko <v.kryachko@gmail.com> Autosubmit: flokli <flokli@flokli.de> Reviewed-by: flokli <flokli@flokli.de>
2024-12-13 r/9005 feat(users/Profpatsch/alacritty): add dbus theme changeProfpatsch2-4/+56
For trying out a bunch of themes in quick succession. Also note down a few of the cooler themes. Change-Id: I0da80cc0945dba03d3592f28f4c34df4b5969e82 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12893 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de>
2024-12-13 r/9004 fix(users/Profpatsch): remove alacritty from DisplayBrightness nameProfpatsch1-9/+7
Change-Id: Ic78b17a3d5bcc96350dca8f71ad489f0ba96c6d0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12892 Reviewed-by: Profpatsch <mail@profpatsch.de> Tested-by: BuildkiteCI
2024-12-13 r/9003 feat(users/Profpatsch): dbus service for changing monitor brightnessProfpatsch1-1/+178
This simple dbus service will use the ddcci interfaces to change brightness for both the internal and external monitor (roughly in sync). Currently in the alacritty-change-color-scheme script because I’m lazy and still experimenting. Change-Id: Ib2c4323699ed9d19ee398f84680b755df4b25798 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12891 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de>
2024-12-13 r/9002 feat(users/Profpatsch/jaeger): allow calling with argumentsProfpatsch1-0/+2
Change-Id: I56ee1b5e0224779e62b428a5a23a2bce48e9f9ef Reviewed-on: https://cl.tvl.fyi/c/depot/+/12890 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de>
2024-12-13 r/9001 feat(users/Profpatsch/alacritty): add tsconfig for jsdoc checksProfpatsch2-0/+18
These `tsconfig` will apply to JS files with jsdoc comments. Sweet! Change-Id: I1a623d0ec7e2d73e99d7c6aaf8162d96f4ff2b29 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12889 Reviewed-by: Profpatsch <mail@profpatsch.de> Tested-by: BuildkiteCI
2024-12-13 r/9000 feat(users/Profpatsch): start dbus tracer nodejs client libProfpatsch1-59/+177
We want to use the tracers quite similar to how we’d use OTEL for tracing, meaning you should be able to start a span and use it within another span to register it as a parent span. They are also batched up and sent asynchrously, so the won’t incur a lot of overhead on dbus nor block the main execution flow (done via sending a nodejs event and a dedicated batch sending process). Change-Id: If61b85305807e661ffee386f793c11c4b7a858a9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12888 Reviewed-by: Profpatsch <mail@profpatsch.de> Tested-by: BuildkiteCI
2024-12-10 r/8999 refactor(users/Profpatsch): simple wrapper around the dbus libProfpatsch1-87/+159
This makes defining the interface a little less verbose & more typesafe (checks are done by the dbus library). Change-Id: I16df987fd152cabf76ed9878ed1a372a0f7003fb Reviewed-on: https://cl.tvl.fyi/c/depot/+/12886 Reviewed-by: Profpatsch <mail@profpatsch.de> Tested-by: BuildkiteCI
2024-12-10 r/8998 feat(users/Profpatsch): Implement initial otel-dbus proxyProfpatsch3-67/+755
For simplicity’s sake this puts everything into the alacritty-change-color-scheme script for now. This implements a simple dbus-opentelemetry proxy adapter, which allows services to record otel traces without having to depend on the quite complex otel libraries. Instead, they just send their traces to the dbus tracing interface, and the service that binds against that interface forwards the spans to the OTLP collector. First you create a new Tracer for your service via the `TracerFactory` interface: ``` > busctl --user call \ de.profpatsch.otel.Tracer \ /de/profpatsch/otel/TracerFactory \ de.profpatsch.otel.TracerFactory CreateTracer \ s hello s "/de/profpatsch/otel/tracers/hello" ``` (this corresponds to setting up a tracer with properties in OTEL) Then, you can use the returned object path to call the `Tracer` interface proper: ``` < busctl --user call \ de.profpatsch.otel.Tracer \ /de/profpatsch/otel/tracers/hello \ de.profpatsch.otel.Tracer \ StartSpan \ s '{"spanId": "111", "name": "111"}' ``` This will create the spans. You can also set their timestamps on the sending side via `startTime`/`endTime`, but make sure it’s a hrtime tuple. Prefer batching multiple spans vie the `BatchSpans` call. Change-Id: Ie6cfdcb0dc3e2398316a2c1763bc72c1118168b0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12885 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de> Reviewed-by: benjaminedwardwebb <benjaminedwardwebb@gmail.com>
2024-12-10 r/8997 feat(pkgs/Profpatsch/alacritty): register color dbus interfaceProfpatsch1-7/+52
Adds a simple-stupid dbus interface for this daemon which allows on-the-fly changing of the alacritty color scheme. Example call: ``` busctl --user call de.profpatsch.alacritty.ColorScheme \ /de/profpatsch/alacritty/ColorScheme \ de.profpatsch.alacritty.ColorScheme \ SetColorScheme s 'prefer-dark' ``` Change-Id: Ic895fedefb3f5bd95f2279edf53fe179e8f24f89 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12875 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de>
2024-12-10 r/8996 feat(pkgs/Profpatsch/alacritty): init dark mode dbus daemonProfpatsch9-7/+464
A simple dbus daemon that writes the alacritty config to `~/.config/alacritty/alacritty-colors-autogen.toml` on startup and whenever a change between dark/light mode is requested. Alacritty only implements an config file isync watcher, no SIGHUP handler or similar, so we have to actually write the config file lol. This is all a little glue-y, but idk, whatever. Further reading & inspo: https://github.com/alacritty/alacritty/issues/5999 https://www.christianfosli.com/posts/2024-on-colorscheme-changed/ https://github.com/christianfosli/on-colorscheme-changed Change-Id: Iac4eb9d85679dc87e28e57d68384645b3b91d08a Reviewed-on: https://cl.tvl.fyi/c/depot/+/12870 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de>