<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="/custom-pretty-feed-v3.xsl" type="text/xsl"?><rss version="2.0"><channel><title>Kristoffer Balintona — #Guix</title><description>Entries tagged with &quot;Guix&quot;</description><link>https://kristofferbalintona.me/</link><language>en-us</language><image><url>https://kristofferbalintona.me/favicon-rss.png</url><title>Kristoffer Balintona — #Guix</title><link>https://kristofferbalintona.me</link></image><item><title>emacs-guix-starter: I’m glad this exists</title><link>https://kristofferbalintona.me/posts/202607080055/</link><guid isPermaLink="true">https://kristofferbalintona.me/posts/202607080055/</guid><description>&lt;p&gt;Recently Hilton Chain&lt;sup&gt;&lt;a href=&quot;#fn-1&quot;&gt;[1]&lt;/a&gt;&lt;/sup&gt; put together &lt;a href=&quot;https://codeberg.org/hako/emacs-guix-starter&quot;&gt;&lt;strong&gt;emacs-guix-starter&lt;/strong&gt;&lt;/a&gt;, a starter Emacs configuration that uses Guix and is set up to Guix. &lt;strong&gt;What it is:&lt;/strong&gt; a regular Emacs &lt;code&gt;init.el&lt;/code&gt; (with basic configuration) alongside a companion Guix packages manifest (&lt;code&gt;packages.scm&lt;/code&gt;) to install those Emacs packages and all their system dependencies. The &lt;code&gt;init.el&lt;/code&gt; even provides configuration to edit Guile!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Beginner-oriented configurations are sorely lacking in Guix&lt;/strong&gt;. In the Emacs world, there are many personal configurations, configuration frameworks (&lt;a href=&quot;https://github.com/doomemacs/core&quot;&gt;Doom&lt;/a&gt;, &lt;a href=&quot;https://www.spacemacs.org/&quot;&gt;Spacemacs&lt;/a&gt;, &lt;a href=&quot;https://prelude.emacsredux.com/en/latest/&quot;&gt;Prelude&lt;/a&gt;), and starter configs (&lt;a href=&quot;https://github.com/jamescherti/minimal-emacs.d&quot;&gt;minimal-emacs.d&lt;/a&gt;, &lt;a href=&quot;https://codeberg.org/ashton314/emacs-bedrock&quot;&gt;emacs-bedrock&lt;/a&gt;). These are great references, if not just to peruse. This is especially true for newcomers, users who haven’t yet developed a second-nature for how to organize files, idiomatic coding patterns, nor familiarized themselves with the standard library.&lt;/p&gt;
&lt;p&gt;On the other hand, in the Guix world, aside from emacs-guix-starter, there’s &lt;a href=&quot;https://github.com/PikachuHy/guile-studio&quot;&gt;guix-studio&lt;/a&gt;&lt;sup&gt;&lt;a href=&quot;#fn-2&quot;&gt;[2]&lt;/a&gt;&lt;/sup&gt;, whose last commit was 5+ years ago.&lt;/p&gt;
&lt;p&gt;With Emacs, learning feels “bootstrapped” because once one learns about Help buffers and navigating Info manuals, it becomes much easier to both discover questions and their answers (by navigating manuals, jumping through source code, and reading docstrings). On the other hand, it’s been my experience that Guix doesn’t become that much easier to pick up once you start—though, granted, I’ve spent much less time trying to figure out Guile and Guix than I have Elisp and Emacs.&lt;/p&gt;
&lt;p&gt;emacs-guix-starter shows what it should look like…&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;to use Guix as one’s Emacs package manager,&lt;/li&gt;
&lt;li&gt;what an Emacs configuration to develop in Guile looks like,&lt;/li&gt;
&lt;li&gt;&lt;em&gt;as well as&lt;/em&gt; how to compose several Guix CLI commands.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Other users can use it as a model or base for their own configuration. Just seeing these types of projects around &lt;strong&gt;goes a long way to demystifying confusions and spreading knowledge throughout the community&lt;/strong&gt;.&lt;/p&gt;
&lt;footer&gt; &lt;h2&gt;Footnotes &lt;a href=&quot;#footnotes-heading&quot;&gt;  
§
&lt;/a&gt;&lt;/h2&gt; &lt;ol&gt; &lt;li&gt;  &lt;a href=&quot;#fnref-1&quot;&gt;[1]&lt;/a&gt; &lt;div&gt; &lt;p&gt;This user goes by various usernames. This is their &lt;a href=&quot;https://github.com/rakino&quot;&gt;GitHub&lt;/a&gt;, &lt;a href=&quot;https://codeberg.org/hako&quot;&gt;Codeberg&lt;/a&gt;, and &lt;a href=&quot;https://ultrarare.space/en/&quot;&gt;blog&lt;/a&gt;. This user has contributed quite a bit for the Guix community in the form of third-party projects (&lt;a href=&quot;https://search.guix.moe/&quot;&gt;https://search.guix.moe/&lt;/a&gt;, an alternative to &lt;a href=&quot;https://toys.whereis.social/&quot;&gt;toys.whereis.social&lt;/a&gt;; &lt;a href=&quot;https://codeberg.org/hako/Rosenthal&quot;&gt;Rosenthal&lt;/a&gt;, a channel), direct contributions upstream, and infrastructure (e.g., the &lt;a href=&quot;https://codeberg.org/hako/guix.moe&quot;&gt;Guix Moe&lt;/a&gt; substitute server). Please consider donating to their &lt;a href=&quot;https://liberapay.com/hakourspace/&quot;&gt;Liberapay&lt;/a&gt;.&lt;/p&gt;  &lt;a href=&quot;#fnref-1&quot;&gt;↩&lt;/a&gt; &lt;/div&gt; &lt;/li&gt;&lt;li&gt;  &lt;a href=&quot;#fnref-2&quot;&gt;[2]&lt;/a&gt; &lt;div&gt; &lt;p&gt;The &lt;a href=&quot;https://guix.gnu.org/manual/1.5.0/en/html_node/Guile-Studio.html&quot;&gt;Guix manual&lt;/a&gt; also mentions Guile Studio as an “alternative setup” to the recommended one that uses Geiser.&lt;/p&gt;  &lt;a href=&quot;#fnref-2&quot;&gt;↩&lt;/a&gt; &lt;/div&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/footer&gt;</description><pubDate>Wed, 08 Jul 2026 00:55:00 GMT</pubDate><category>Emacs</category><category>Guix</category><category>Configuration</category></item><item><title>Using URLs and SWHIDs directly in guix pull and guix time-machine</title><link>https://kristofferbalintona.me/posts/202606190034/</link><guid isPermaLink="true">https://kristofferbalintona.me/posts/202606190034/</guid><description>&lt;p&gt;Today I stumbled upon a recently published (one month ago) blog post by the Guix team: &lt;a href=&quot;https://guix.gnu.org/blog/2026/time-travel-without-borders/&quot;&gt;Time travel without borders&lt;/a&gt;. It was a worthwhile read.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;guix time-machine&lt;/code&gt; is used to go back or forward in time (relative to the current Guix profile) and call other Guix subcommands. For instance, to run the &lt;code&gt;yt-dlp&lt;/code&gt; binary from the latest Guix commit:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Terminal window&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;guix&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;time-machine&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-q&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;shell&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;yt-dlp&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;yt-dlp&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;…&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Another example comes from my personal &lt;a href=&quot;https://codeberg.org/krisbalintona/guix-config&quot;&gt;Guix config&lt;/a&gt;: to test if my home environment configuration would build properly if I did a &lt;code&gt;guix pull&lt;/code&gt;, I do something like:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Terminal window&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;guix&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;home&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;reconfigure&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-L&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;src&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--expression=&lt;/span&gt;&lt;span&gt;&apos;&lt;/span&gt;&lt;span&gt;(@ (krisb config machines MACHINE home) MACHINE-home-environment)&lt;/span&gt;&lt;span&gt;&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Both of the above are examples of going “forward” in time (i.e., forward in the Guix repository commit history), but one can just as easily go back to earlier commits.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://guix.gnu.org/blog/2026/time-travel-without-borders/&quot;&gt;The article&lt;/a&gt; goes over a recently added feature to &lt;code&gt;guix pull&lt;/code&gt; and &lt;code&gt;guix time-machine&lt;/code&gt;. I believe it comes from this PR:&lt;/p&gt;
&lt;div&gt;&lt;p&gt;&lt;a href=&quot;https://codeberg.org/guix/guix/pulls/6745&quot;&gt;#6745 - Allow `pull` and `time-machine` to download channel files - guix/guix - Codeberg.org&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
&lt;p&gt;This new feature basically lets one provide a URL or SWHID (Software Hash Identifiers)&lt;sup&gt;&lt;a href=&quot;#fn-1&quot;&gt;[1]&lt;/a&gt;&lt;/sup&gt; to &lt;code&gt;guix pull&lt;/code&gt; or &lt;code&gt;guix time-machine&lt;/code&gt; directly. (The latter is more secure, since it involves a content hash.)&lt;/p&gt;
&lt;p&gt;So, instead of having to do something like the following, where one fetches a file via e.g. &lt;code&gt;wget&lt;/code&gt; then calls &lt;code&gt;guix time-machine&lt;/code&gt;:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Terminal window&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;wget&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-O&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;channels.scm&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;https://ci.guix.gnu.org/eval/latest/channels.scm?spec=master&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;guix&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;time-machine&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-C&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;channels.scm&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;shell&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;…&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;or the one-line Bash equivalent:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Terminal window&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;guix&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;time-machine&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;-C &lt;/span&gt;&lt;span&gt;&amp;lt;(&lt;/span&gt;&lt;span&gt;wget&lt;/span&gt;&lt;span&gt; -O https://ci.guix.gnu.org/eval/latest/channels.scm?spec=master&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;-- &lt;/span&gt;&lt;span&gt;shell&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;…&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;We can do the following instead, using a URL directly:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Terminal window&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;guix&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;time-machine&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;-C &lt;/span&gt;&lt;span&gt;https://ci.guix.gnu.org/eval/latest/channels.scm?spec=master&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;-- &lt;/span&gt;&lt;span&gt;…&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;or with a SWHID&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Terminal window&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;guix&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;time-machine&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;-C &lt;/span&gt;&lt;span&gt;swh:1:cnt:003e1e0c1b9b358082201332c926ae54e9549002&lt;/span&gt;&lt;span&gt;  \&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;-- &lt;/span&gt;&lt;span&gt;…&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Really cool!&lt;/p&gt;
&lt;footer&gt; &lt;h2&gt;Footnotes &lt;a href=&quot;#footnotes-heading&quot;&gt;  
§
&lt;/a&gt;&lt;/h2&gt; &lt;ol&gt; &lt;li&gt;  &lt;a href=&quot;#fnref-1&quot;&gt;[1]&lt;/a&gt; &lt;div&gt; &lt;p&gt;You can learn more about SWHIDs (Software Hash Identifiers) &lt;a href=&quot;https://www.swhid.org/&quot;&gt;here&lt;/a&gt;. They are basically unique IDs for software artifacts. This includes repositories, commits, source code/files, and more. The benefit of SWHIDs is that it ensures that the e.g. content of a URL is not changed under your feet—hence, they have a security benefit.&lt;/p&gt;&lt;p&gt;I learned about these only until recently by another Guix resource, and as of April 23, 2025 SWHIDs are &lt;em&gt;an ISO International Standard&lt;/em&gt;!&lt;/p&gt;  &lt;a href=&quot;#fnref-1&quot;&gt;↩&lt;/a&gt; &lt;/div&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/footer&gt;</description><pubDate>Fri, 19 Jun 2026 00:34:00 GMT</pubDate><category>Guix</category><category>Tips and Tricks</category></item></channel></rss>