<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
  xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>mariko.foo RSS Feed</title>
    <link>https://mariko.foo</link>
    <description>The official RSS Feed for https://mariko.foo</description>
    <pubDate>Thu, 26 Nov 2026 15:08:13 +0000</pubDate>
    <item>
      <title>Installing Void Linux on a Gen 3 Thinkpad T14s</title>
      <link>https://mariko.foo/posts/void-linux-thinkpad-t14s/</link>
      <description>&lt;h1 id=&quot;installing-void-linux-on-a-gen-3-thinkpad-t14s&quot;&gt;Installing Void Linux on a Gen 3 Thinkpad T14s&lt;/h1&gt;

&lt;p&gt;2026-06-06&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Author’s Note: This post will not follow my usual verbose narrative format. This is more of a notes dump from my recent experience installing Void Linux on my laptop (twice!). My T14s has an AMD Ryzen 5 Pro processor and as such these notes do not cover Intel or Nvidia microcode.&lt;/em&gt;&lt;/p&gt;

&lt;h1 id=&quot;read-the-friendly-manual&quot;&gt;&lt;strong&gt;R&lt;/strong&gt;ead &lt;strong&gt;T&lt;/strong&gt;he &lt;strong&gt;F&lt;/strong&gt;riendly &lt;strong&gt;M&lt;/strong&gt;anual&lt;/h1&gt;
&lt;p&gt;The installation process of Void Linux is quite remarkable in that despite it being minimal and reliant on the user to install and configure most things, it’s a shockingly painless process. This is due to the incredible &lt;a href=&quot;https://docs.voidlinux.org/&quot;&gt;Void Linux Handbook&lt;/a&gt;. The majority of the installation process is smiply following along with the handbook. Occasionally decisions must be made and slight detours taken. These extra bits which may not be covered by the handbook are what I’ve documented here.&lt;/p&gt;

&lt;p&gt;Each section below corresponds with a section of the handbook for convenient cross-reference.&lt;/p&gt;

&lt;h1 id=&quot;install&quot;&gt;Install&lt;/h1&gt;
&lt;p&gt;The initial steps of the installer are straightforward and required little-to-no deviation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;User groups&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Add the user to the standard run of groups.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;wheel floppy dialout audio video cdrom optical storage network kvm input users xbuilder
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Partitions&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Wipe the slate clean and use a simple but effective partition layout: boot, swap, system.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Delete everything.&lt;/li&gt;
  &lt;li&gt;Create three new partitions:
    &lt;ol&gt;
      &lt;li&gt;Size: 512M&lt;/li&gt;
      &lt;li&gt;Size: 8G&lt;/li&gt;
      &lt;li&gt;Size: whatever is left&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Filesystems&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;512M
  - Type: vfat
  - Mount point: &lt;code&gt;/boot/efi&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;8G
  - Type: swap&lt;/li&gt;
  &lt;li&gt;only one left
  - Type: ext4
  - Monut point: &lt;code&gt;/&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;(Post-install, pre-reboot)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Enable &lt;code&gt;dhcpcd&lt;/code&gt; and &lt;code&gt;wpa_supplicant&lt;/code&gt; services if not already enabled.&lt;/p&gt;

&lt;p&gt;Reboot.&lt;/p&gt;

&lt;h1 id=&quot;configuration&quot;&gt;Configuration&lt;/h1&gt;

&lt;p&gt;Login with root and update:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;xbps-install &lt;span class=&quot;nt&quot;&gt;-Su&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Enable passwordless sudo:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Run &lt;code&gt;visudo&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;Comment out last line: &lt;code&gt;# @includedir /etc/sudoers.d&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;Enable group &lt;code&gt;wheel&lt;/code&gt; to execute any command by removing the comment delimiter on the line containing: &lt;code&gt;%wheel ALL=(ALL:ALL) NOPASSWWD: ALL&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;documentation&quot;&gt;../Documentation&lt;/h1&gt;

&lt;p&gt;Install some basics: &lt;code&gt;xbps-install xtools void-docs cronie vim &lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;xtools&lt;/strong&gt; for xbps convenience&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;void-docs&lt;/strong&gt; for a local copy of the docs&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;cronie&lt;/strong&gt; for cron services so that &lt;code&gt;makewhatis&lt;/code&gt; runs regularly (&lt;code&gt;makewhatis&lt;/code&gt; is a convenience tool for speeding up &lt;code&gt;apropos&lt;/code&gt;, &lt;code&gt;whatis&lt;/code&gt;, and &lt;code&gt;man -k&lt;/code&gt;)
    &lt;ul&gt;
      &lt;li&gt;Enable cronie service:&lt;/li&gt;
    &lt;/ul&gt;

    &lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;ln&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-s&lt;/span&gt; /etc/sv/cronie /var/service
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;vim&lt;/strong&gt; for quick cli editing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Install more documentation (see how nice xtools are?):&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;xi man-pages-devel man-pages-posix
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;firmware&quot;&gt;../Firmware&lt;/h1&gt;

&lt;p&gt;(In the handbook but important so adding here too)&lt;/p&gt;

&lt;p&gt;Enable the non-free package repo:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;xi void-repo-nonfree
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Install AMD microcode and GNU binutils:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;xi linux-firmware-amd binutils
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;May receive an error that linux-firmware-amd is already installed. If so, great! The installer detected it correctly!&lt;/em&gt;&lt;/p&gt;

&lt;h1 id=&quot;users-and-groups&quot;&gt;../Users and Groups&lt;/h1&gt;

&lt;p&gt;Install fish, then continue on in the handbook to set it for the non-root user:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;xi fish-shell
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I also like to set root’s shell to &lt;code&gt;bash&lt;/code&gt; as it’s easier to work with than &lt;code&gt;dash&lt;/code&gt;/&lt;code&gt;sh&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;chsh &lt;span class=&quot;nt&quot;&gt;-s&lt;/span&gt; /usr/bin/bash
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;securityapparmor&quot;&gt;../Security/AppArmor&lt;/h1&gt;

&lt;p&gt;After making the edits according to the handbook, reboot.&lt;/p&gt;

&lt;p&gt;Verify the new grub cli arguments are being used: &lt;code&gt;cat /proc/cmdline&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Verify AppArmor is enabled: &lt;code&gt;aa-enabled # Yes&lt;/code&gt;&lt;/p&gt;

&lt;h1 id=&quot;datetime&quot;&gt;../Date/Time&lt;/h1&gt;

&lt;p&gt;Use Chrony and follow instructions in the respective handbook section.&lt;/p&gt;

&lt;h1 id=&quot;power-management&quot;&gt;../Power Management&lt;/h1&gt;

&lt;p&gt;Use tlp and follow instructions in the respective handbook section.&lt;/p&gt;

&lt;h1 id=&quot;networkwireless&quot;&gt;../Network/Wireless&lt;/h1&gt;

&lt;p&gt;Make sure wifi interface isn’t blocked (shouldn’t be).&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;rfkill list
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Set up wifi using wpa_cli&lt;/strong&gt;&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# Get interface name&lt;/span&gt;
ip &lt;span class=&quot;nb&quot;&gt;link &lt;/span&gt;show

&lt;span class=&quot;c&quot;&gt;# Start wpa_cli interactive session&lt;/span&gt;
wpa_cli &lt;span class=&quot;nt&quot;&gt;-i&lt;/span&gt; &amp;lt;interface identifier from the previous &lt;span class=&quot;nb&quot;&gt;command&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# Scan for available networks&lt;/span&gt;
scan

&lt;span class=&quot;c&quot;&gt;# View scan results and take note of the SSID&lt;/span&gt;
scan_results

&lt;span class=&quot;c&quot;&gt;# Create a new network profile&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# (Profile ID (PID) should be the integer at the end of the output)&lt;/span&gt;
add_network

&lt;span class=&quot;c&quot;&gt;# Configure the network credentials&lt;/span&gt;
set_network PID ssid &lt;span class=&quot;s2&quot;&gt;&quot;the_ssid_from_scan&quot;&lt;/span&gt;
set_network PID psk &lt;span class=&quot;s2&quot;&gt;&quot;the wifi password&quot;&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# For hidden networks, may need to additionally run&lt;/span&gt;
set_network 0 ssid 1

&lt;span class=&quot;c&quot;&gt;# Enable the network&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# Handshake attempt logs to stdout so you will know immediately if the connection was successful.&lt;/span&gt;
enable_network 0

&lt;span class=&quot;c&quot;&gt;# Save and quit&lt;/span&gt;
save_config
quit
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If the enable_network output indicated a successful connection, verify wifi is working with a quick ping:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;ping 1.1.1.1
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;network-filesystems&quot;&gt;../Network Filesystems&lt;/h1&gt;

&lt;p&gt;Come back to this after everything else is done and the user desktop environment is setup.&lt;/p&gt;

&lt;h1 id=&quot;session-and-seat-management&quot;&gt;../Session and Seat Management&lt;/h1&gt;

&lt;p&gt;Use dbus and follow instructions is the respective handbook section.&lt;/p&gt;

&lt;p&gt;D-Bus should already be installed by this point. If not, install it.&lt;/p&gt;

&lt;p&gt;Enable the service:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;ln&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-s&lt;/span&gt; /etc/sv/dbus /var/service
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Install &lt;code&gt;dumb_runtime_dir&lt;/code&gt; for automated &lt;strong&gt;XDG_RUNTIME_DIR&lt;/strong&gt;:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;xi dumb_runtime_dir
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Enable PAM dum runtime dir by removing the comment delimiter from the following line in the PAM configuration file &lt;code&gt;/etc/pam.d/system-login&lt;/code&gt;:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;session optional pam_dumb_runtime_dir.so&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Reboot.&lt;/p&gt;

&lt;p&gt;Login as the non-root user.&lt;/p&gt;

&lt;p&gt;Verify &lt;code&gt;dumb_runtime_dir&lt;/code&gt; is working:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$XDG_RUNTIME_DIR&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;# /run/user/1000&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Logout and back in as root.&lt;/p&gt;

&lt;h1 id=&quot;graphical-sessiongraphics-driversamd-or-ati&quot;&gt;../Graphical Session/Graphics Drivers/AMD or ATI&lt;/h1&gt;

&lt;p&gt;Use Xorg (because &lt;a href=&quot;https://mariko.foo/posts/suckless/&quot;&gt;Suckless is goddamn awesome&lt;/a&gt;) and follow instructions is the respective handbook section. We’re not using a login manager either.&lt;/p&gt;

&lt;p&gt;Remember to also install &lt;code&gt;mesa-vaapi&lt;/code&gt; for video acceleration and &lt;code&gt;mesa-vulkan-radeon&lt;/code&gt; for Vulkan support.&lt;/p&gt;

&lt;p&gt;Install &lt;code&gt;picom&lt;/code&gt;, &lt;code&gt;qutebrowser&lt;/code&gt;, &lt;code&gt;base-devel&lt;/code&gt;, &lt;code&gt;libX11-devel&lt;/code&gt;, &lt;code&gt;libXft-devel&lt;/code&gt;, &lt;code&gt;libxinerama-devel&lt;/code&gt;, &lt;code&gt;dbus-x11&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Picom&lt;/strong&gt;: Compositor&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Qutebrowser&lt;/strong&gt;: Dope vim-bindings web browser&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;base-devel&lt;/strong&gt;, &lt;strong&gt;libX11-devel&lt;/strong&gt;, &lt;strong&gt;libXft-devel&lt;/strong&gt;, &lt;strong&gt;libxinerama-devel&lt;/strong&gt;: Build X-based applications&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;dbus-x11&lt;/strong&gt;: Required for starting message buses from scripts in X environments&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Logout and log back in as non-root user.&lt;/p&gt;

&lt;p&gt;Clone suckless applications and dotfiles from private repo.&lt;/p&gt;

&lt;p&gt;Make sure the user’s shell profile has a shell-compatible version of the below. This starts X if X isn’t already running and the current user logs in on TTY1.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;if &lt;/span&gt;not &lt;span class=&quot;nb&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-q&lt;/span&gt; DISPLAY
    &lt;span class=&quot;k&quot;&gt;if &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;test&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;tty&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;/dev/tty1&quot;&lt;/span&gt;
        &lt;span class=&quot;nb&quot;&gt;exec &lt;/span&gt;startx
    end
end
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Make sure &lt;code&gt;~/.xinitrc&lt;/code&gt; exists and is adequately populated to handle whatever X apps need run for the user’s X session.&lt;/p&gt;

&lt;h1 id=&quot;graphical-sessionfonts&quot;&gt;../Graphical Session/Fonts&lt;/h1&gt;

&lt;p&gt;Logout and back in as root.&lt;/p&gt;

&lt;p&gt;Install some baseline fonts:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;xi font-iosevka dejavu-fonts-ttf noto-fonts-ttf noto-fonts-cjk noto-fonts-emoji nerd-fonts-symbols-ttf
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;multimediapipewire&quot;&gt;../Multimedia/PipeWire&lt;/h1&gt;

&lt;p&gt;Install PipeWire and wiremix (tui mixer for pipewire):&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;xi pipewire wiremix
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Continue PipeWire setup (including PulseAudio Interface!) per the handbook.&lt;/p&gt;

&lt;p&gt;Reboot, login in as non-root, and test with wpctl status.&lt;/p&gt;

&lt;h1 id=&quot;misc&quot;&gt;Misc&lt;/h1&gt;

&lt;p&gt;Install ad blocking for qutebrowser:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;xi python3-adblock
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In qute, update ad blocking:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;:adblock-update
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Install some misc packages (not an all-inclusive list):&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;xi bat brightnessctl emacs fzf thefuck wget
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Set natural scrolling for the touchpad by creating the directory+file &lt;code&gt;/etc/X11/xorg.conf.d/30-touchpad.conf&lt;/code&gt; with the contents:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Section &lt;span class=&quot;s2&quot;&gt;&quot;InputClass&quot;&lt;/span&gt;
    Identifier &lt;span class=&quot;s2&quot;&gt;&quot;touchpad&quot;&lt;/span&gt;
    MatchIsTouchpad &lt;span class=&quot;s2&quot;&gt;&quot;on&quot;&lt;/span&gt;
    Driver &lt;span class=&quot;s2&quot;&gt;&quot;libinput&quot;&lt;/span&gt;
    Option &lt;span class=&quot;s2&quot;&gt;&quot;NaturalScrolling&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;true&quot;&lt;/span&gt;
EndSection
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Go back to the &lt;strong&gt;Configuration/Network Filesystems&lt;/strong&gt; section of the handbook and setup the NFS.&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;That’s it! Void Linux is installed and ready to use on a gen 3 Thinkpad T14s (AMD)!&lt;/p&gt;
</description>
      <pubDate>Sat, 06 Jun 2026 12:00:00 +0000</pubDate>
      <dc:date>2026-06-06T12:00:00+00:00</dc:date>
    </item>
    <item>
      <title>suckless applications and why they&#39;re goddamn awesome</title>
      <link>https://mariko.foo/posts/suckless/</link>
      <description>&lt;h1 id=&quot;suckless-applications-and-why-theyre-goddamn-awesome&quot;&gt;suckless applications and why they’re goddamn awesome&lt;/h1&gt;

&lt;p&gt;2026-04-21&lt;/p&gt;

&lt;p&gt;&lt;em&gt;author’s note: This post is a work-in-progress. Instead of chipping away at it for ages before publishing, I’ve decided to fight my perfectionism and experiment with the “living document” approach. I’ll add content as it strikes me and over time, this post will grow and fill out. Seems like a neat idea. Could just be really dumb. I guess we’ll find out together, pal.&lt;/em&gt;&lt;/p&gt;

&lt;h2 id=&quot;everything-sucks-less&quot;&gt;everything suck[s]-less&lt;/h2&gt;
&lt;p&gt;OK. Suckless applications. Maybe you’ve heard of them, maybe you haven’t. If you’re the latter, I invite you to immediately press the pause button on this post and go check them out: &lt;a href=&quot;https://suckless.org/&quot;&gt;https://suckless.org/&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Suckless software describes itself as “quality software with a focus on simplicity, clarity, and frugality”. I find this to be a not only appealing but accurate description. If you have perused the &lt;a href=&quot;https://mariko.foo/about/&quot;&gt;man page&lt;/a&gt; of this fine textual establishment called &lt;a href=&quot;https://mariko.foo&quot;&gt;mariko.foo&lt;/a&gt;, you will undoubtedly have read of my love for technological simplicity and leanness. Suckless software and I are quite the match, if I do say so myself. We’re like PB&amp;amp;J, Elizabeth and Darcy, Sid and Nancy. Hm. Maybe not that last one.&lt;/p&gt;

&lt;p&gt;I’m a values-driven individual, if you weren’t aware. I don’t mind sacrificing some convenience if I’m bought into the value behind the thing. In fact, I frequently welcome the added friction as I enjoy the challenge and &lt;em&gt;really&lt;/em&gt; enjoy learning. Imagine my sheer joy when after years of hearing the name “suckless” I finally took the &lt;em&gt;five goddamn minutes&lt;/em&gt; it takes to look it up and see those glorious words “quality”, “simplicity”, “clarity”, and “frugality”. Right there on the front page, even! Friends, on those four values, suckless software delivers.&lt;/p&gt;

&lt;h2 id=&quot;how-to-suck-less&quot;&gt;how to suck less&lt;/h2&gt;
&lt;p&gt;We’ve covered why I’m a big fan of this software collection but we haven’t touched on how it actually works. What makes these applications so configurable yet frugal? Well, quite a lot actually. I’m not going to even try to cover &lt;em&gt;everything&lt;/em&gt;; I’ll leave that to the &lt;a href=&quot;https://suckless.org/philosophy/&quot;&gt;philosophy&lt;/a&gt; page on the suckless site. What I &lt;em&gt;will&lt;/em&gt; do is talk about the specific aspects I enjoy the most.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;No config files.
Yes. Finally. Dotfile hell is over. OK, not really but this is serious progress for me!
Configuraiton of suckless applications happens by modifying the code of the application itself not by reading some external resource or file. This means all configuraitons and changes are &lt;em&gt;built directly into the software&lt;/em&gt;. The end result is a dependency-less standalone application that I’ve customized to my liking. I no longer have to worry about managing config files. I no longer have to worry about reproducability. If I have the source files, I have my changes. If I want to share specific subsets of those changes, I can easily create and share a &lt;a href=&quot;https://www.oreilly.com/library/view/git-pocket-guide/9781449327507/ch11.html&quot;&gt;patch&lt;/a&gt; others can apply to their own source.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Portable.
As a result of the previous item, each application is ideally built from source. No relying on package managers, no being trapped under upstream updates. I have total control of the software. Additionally, due to the design of these applications to be configured by hacking on them, there is a thriving patch scene. Users write and share their own patches with each other allowing an organic approach to sharing and growing configuraitons and features. The lack of external config sources means all I need to have my &lt;a href=&quot;https://git.sr.ht/~hajduk/dwm&quot;&gt;completely customized window manager&lt;/a&gt; fully configured and ready to use, is git. I can clone my repo, build the application, and I’m in business. Hooray for reproducibility!&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;C.
I may be showing my age here but there’s simply no denying it. I love C. I work in C for a living and I truly love it. It’s small, simple, powerful, and stable. This is a small but significant aspect. If I’m going to be spending time manually editing the application’s code, I want to be enjoying the process. I have already seen the effects of &lt;em&gt;enjoying&lt;/em&gt; configuring these applications. My creativity spins up more, I get excited to experiment, I &lt;em&gt;want&lt;/em&gt; to think of new things to add or existing features to tweak. Instead of configuraiton being a chore it’s become a catalyst for creativity and source of inspiration.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;wrap-it-up-brother&quot;&gt;wrap it up, brother&lt;/h2&gt;
&lt;p&gt;So my sweet turtles, if upon reading this delightfully eloquent exegesis you find yourself becoming flushed, your pulse quickening, blood pounding in your ears, and your fingers longing to use software that is stable, flexible, and high-quality, while &lt;em&gt;also&lt;/em&gt; being simple and lean, I humbly invite you to dip your tootsies into the waters of software that truly sucks less.&lt;/p&gt;

&lt;h2 id=&quot;bonus-reading&quot;&gt;bonus reading&lt;/h2&gt;
&lt;p&gt;If you would like to take a gander at my own personal repo of suckless software which I use daily (even to write this very post!) and how I’ve hacked and slashed it to my own tastes, scoot on over and rub your eyeballs all over them: &lt;a href=&quot;https://sr.ht/~hajduk/suckless/&quot;&gt;suckless&lt;/a&gt;.&lt;/p&gt;
</description>
      <pubDate>Tue, 21 Apr 2026 12:00:00 +0000</pubDate>
      <dc:date>2026-04-21T12:00:00+00:00</dc:date>
    </item>
    <item>
      <title>running dragonruby gtk on nixos</title>
      <link>https://mariko.foo/posts/drgtk-nixos/</link>
      <description>&lt;h1 id=&quot;running-dragonruby-gtk-on-nixos&quot;&gt;running dragonruby gtk on nixos&lt;/h1&gt;

&lt;p&gt;2025-05-29&lt;/p&gt;

&lt;p&gt;&lt;em&gt;updated: 2026-04-18&lt;/em&gt;&lt;/p&gt;

&lt;h2 id=&quot;oh-god-not-the-life-story&quot;&gt;oh god not the life story&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;Skip down to &lt;a href=&quot;https://mariko.foo/posts/drgtk-nixos/#the-good-stuff&quot;&gt;the good stuff&lt;/a&gt; if you are the “don’t bore us get to the chorus” type&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I have recently made the jump to NixOS. It took me years but I finally caved in. Turns out it’s pretty neat! I have potentially found my Linux home and dare I hope, the cure to my insatiable distro-hopping. I won’t go into detail here about what I like about it and why I decided to give it a try (that’s a much longer post for a much less buzzed me).&lt;/p&gt;

&lt;p&gt;Suffice to say, I’m pretty enamoured and look forward to becoming more familiar with it. Alas, you’re not here to read about my feelings for Linux distros. You’re here to learn how to run my favorite &lt;a href=&quot;https://dragonruby.org/&quot;&gt;game toolkit&lt;/a&gt; in NixOS, which unapologetically &lt;a href=&quot;https://nix.dev/permalink/stub-ld&quot;&gt;does not support running dynamically linked executables intended for generic Linux environments&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Well, good news dearest reader: it’s pretty damn simple.&lt;/p&gt;

&lt;p&gt;All we need to do is:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Configure Nix to run dynamically linked Linux executables.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Create a &lt;strong&gt;&lt;a href=&quot;https://nix.dev/manual/nix/2.28/command-ref/nix-shell&quot;&gt;nix-shell&lt;/a&gt;&lt;/strong&gt; environment containing the appropriate SDL libraries.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We’ll accomplish step &lt;strong&gt;1&lt;/strong&gt; using the included &lt;a href=&quot;https://github.com/nix-community/nix-ld&quot;&gt;nix-ld&lt;/a&gt; package to create a library path that only applies to unpackaged programs. Step &lt;strong&gt;2&lt;/strong&gt; will declare a very simple nix-shell environment which adds necessary libraries to be used by SDL for both X11 and Wayland protocols.&lt;/p&gt;

&lt;p&gt;Explaining nix-ld and nix-shell is a bit beyond the scope of this lil post but if you want to learn more, I strongly suggest checking out the official documentation linked above. It’s worth noting that there are multiple ways to accomplish this task and I’m presenting only one option for you to consider.&lt;/p&gt;

&lt;h2 id=&quot;the-good-stuff&quot;&gt;the good stuff&lt;/h2&gt;
&lt;p&gt;Let’s get down to the nitty gritty.&lt;/p&gt;

&lt;p&gt;1) Configure Nix to run dynamically linked generic Linux executables. We’ll do this by adding the following to our Nix configuraiton (you will need to rebuild and reboot/logout in order for the nix-ld pacakge to enable and propagate):&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;programs.nix-ld.enable &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
programs.nix-ld.libraries &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; with pkgs&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[]&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;2) Plop the following into a file called “shell.nix” at the root of your DRGTK project folder:&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pkgs&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;?&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nixpkgs&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{}&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;}:&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;pkgs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;mkShell&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;buildInputs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;with&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pkgs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;xwayland&lt;/span&gt;
    &lt;span class=&quot;no&quot;&gt;SDL2&lt;/span&gt;
  &lt;span class=&quot;p&quot;&gt;];&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;shellHook&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&#39;&#39;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;LD_LIBRARY_PATH&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;$LD_LIBRARY_PATH:${
      with pkgs;
      lib.makeLibraryPath [
        libGL
        wayland
        wayland-protocols
        SDL2
        xorg.libX11
        xorg.libXi
        xwayland
      ]
    }&quot;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;SDL_VIDEODRIVER&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;wayland,x11&quot;&lt;/span&gt;
  &lt;span class=&quot;s1&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;3) &lt;code&gt;cd&lt;/code&gt; into the root of your DRGTK project folder where you just created the &lt;code&gt;shell.nix&lt;/code&gt; file and run the &lt;code&gt;nix-shell&lt;/code&gt; command.
This will drop you into a new shell instance containing the above configuraiton. If you have your prompt configured to display host information you will notice it update to display &lt;code&gt;nix-shell&lt;/code&gt; instead of &lt;code&gt;user@host&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;4) All that’s left now is to run DragonRuby like you usually would!&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;./dragonruby mygame
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Et voilà! DragonRuby is running!&lt;/p&gt;

&lt;h2 id=&quot;how-the-good-stuff-is-made&quot;&gt;how the good stuff is made&lt;/h2&gt;
&lt;p&gt;So how does this work? Let’s walk through it together.&lt;/p&gt;

&lt;h3 id=&quot;nix-ld&quot;&gt;nix-ld&lt;/h3&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;programs.nix-ld.enable &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# The following is not required but I keep it in case I ever want to make certain&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# libraries globally accessible to all non-nix packages.&lt;/span&gt;
programs.nix-ld.libraries &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; with pkgs&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;
  &lt;span class=&quot;c&quot;&gt;# Add any missing dynamic libraries for unpackaged programs here&lt;/span&gt;
  &lt;span class=&quot;c&quot;&gt;# NOT in environment.systemPackages&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;You’ll notice we do &lt;em&gt;not&lt;/em&gt; add our OpenGL and X11 libraries here. This is just a “design” decision I’ve made. I only want to make non-nix programs &lt;em&gt;able&lt;/em&gt; to run via my system configuraiton. Any specific libraries I need I want to declare in environment-specific configuraitons. This keeps my system environment clean while allowing bespoke development environments to be created using nix-shell.&lt;/p&gt;

&lt;h3 id=&quot;nix-shell&quot;&gt;nix-shell&lt;/h3&gt;
&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pkgs&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;?&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nixpkgs&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{}&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;}:&lt;/span&gt;
  &lt;span class=&quot;o&quot;&gt;...&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This bit defines an argument set with a default value of &lt;code&gt;pkgs&lt;/code&gt;. If pkgs is not provided, it wil use &lt;code&gt;nixpkgs&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;o&quot;&gt;...&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;pkgs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;mkShell&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;o&quot;&gt;...&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This next line creates the shell environment using the subsequent links as configuraiton.&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;o&quot;&gt;...&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;buildInputs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;with&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pkgs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;xwayland&lt;/span&gt;
    &lt;span class=&quot;no&quot;&gt;SDL2&lt;/span&gt;
  &lt;span class=&quot;p&quot;&gt;];&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Here specific packages which should be available in the new shell environment are included. We’re specifying XWayland and SDL2 just in case they aren’t available in the global environment. XWayland allows X11 to be used as a fallaback and SDL2 is required for DragonRuby.&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;o&quot;&gt;...&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;shellHook&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&#39;&#39;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;LD_LIBRARY_PATH&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;$LD_LIBRARY_PATH:${
      with pkgs;
      lib.makeLibraryPath [
        libGL
        wayland
        wayland-protocols
        SDL2
        xorg.libX11
        xorg.libXi
        xwayland
      ]
    }&quot;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;SDL_VIDEODRIVER&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;wayland,x11&quot;&lt;/span&gt;
  &lt;span class=&quot;s1&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is where the magic happens. We’re creating a hook to be run each time we enter the new shell environment. Within that hook, we extend the &lt;code&gt;LD_LIBRARY_PATH&lt;/code&gt; environment variable to include common Wayland and X11 libraries which are needed by SDL2. We include both so that environments running either Wayland or X11 will be able to use this single config. If you are on Wayland, it is recommended to keep the X libs as they provide an in-place fallback if Wayland fails to cooperate.&lt;/p&gt;

&lt;p&gt;That’s it! All we needed was to enable nix-ld to handle generic Linux executables that rely on the &lt;a href=&quot;https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html&quot;&gt;FHS&lt;/a&gt; and a basic shell config for running GUI apps from the terminal!&lt;/p&gt;

&lt;h2 id=&quot;wrap-up&quot;&gt;wrap up&lt;/h2&gt;
&lt;p&gt;This is a pretty simple method for getting DragonRuby GTK running under NixOS. There are &lt;em&gt;many&lt;/em&gt; different ways to do this but I just wanted to document the simplest method that works for my system. I’m still very new to Nix and I &lt;em&gt;think&lt;/em&gt; this approach is pretty OK/ I don’t think I’m doing anything terribly unsafe or blasphemous.&lt;/p&gt;

&lt;p&gt;If I end up changing my method or doing things differently I’ll leave this post for historical purposes and create a new post to document the new set up, with cross links for easy navigation.&lt;/p&gt;

&lt;h2 id=&quot;credits&quot;&gt;credits&lt;/h2&gt;

&lt;p&gt;Thank you &lt;strong&gt;commandingdolphin@discord&lt;/strong&gt; for sharing the X-compatible &lt;code&gt;nix-shell&lt;/code&gt; snippet!&lt;/p&gt;

&lt;p&gt;Thank you &lt;strong&gt;Iniyan@discord&lt;/strong&gt; for requesting a Wayland-compatible version of this config!&lt;/p&gt;

&lt;p&gt;The raw &lt;strong&gt;shell.nix&lt;/strong&gt; config can be found at &lt;a href=&quot;https://paste.sr.ht/~hajduk/ca5602018b94712bbeb6e28c5b57135515f73139&quot;&gt;my sourcehut&lt;/a&gt;.&lt;/p&gt;
</description>
      <pubDate>Thu, 29 May 2025 12:00:00 +0000</pubDate>
      <dc:date>2025-05-29T12:00:00+00:00</dc:date>
    </item>
    <item>
      <title>roguelike tutorial with DragonRuby GTK</title>
      <link>https://mariko.foo/posts/roguelike-tutorial/</link>
      <description>&lt;h1 id=&quot;roguelike-tutorial-with-dragonruby-gtk&quot;&gt;roguelike tutorial with DragonRuby GTK&lt;/h1&gt;

&lt;p&gt;2025-05-28&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;makeMeAGoodRlPls&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;theBestRlEver&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kp&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;Actual things are coming I promise this is just really hard OK?&lt;/em&gt;&lt;/p&gt;
</description>
      <pubDate>Wed, 28 May 2025 12:00:00 +0000</pubDate>
      <dc:date>2025-05-28T12:00:00+00:00</dc:date>
    </item>
    <item>
      <title>hello world</title>
      <link>https://mariko.foo/posts/helloworld/</link>
      <description>&lt;h1 id=&quot;hello-world&quot;&gt;hello world&lt;/h1&gt;

&lt;p&gt;2025-05-15&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;helloWorld&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;puts&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&#39;Unimaginably unimaginable.&#39;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;also have a cat&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/public/images/cat.jpg&quot; alt=&quot;itty bitty kitty&quot; /&gt;&lt;/p&gt;
</description>
      <pubDate>Thu, 15 May 2025 12:00:00 +0000</pubDate>
      <dc:date>2025-05-15T12:00:00+00:00</dc:date>
    </item>
    <dc:date>2026-11-26T15:08:13+00:00</dc:date>
  </channel>
</rss>