<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Dominik Bullo</title>
    <description>The latest articles on DEV Community by Dominik Bullo (@dominikbullo).</description>
    <link>https://dev.to/dominikbullo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3949581%2F015fbdbc-b772-497f-b097-f343f2fc19fa.jpeg</url>
      <title>DEV Community: Dominik Bullo</title>
      <link>https://dev.to/dominikbullo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dominikbullo"/>
    <language>en</language>
    <item>
      <title>Half a Day, Not a Week: One Nix Flake for Three Machines</title>
      <dc:creator>Dominik Bullo</dc:creator>
      <pubDate>Sun, 24 May 2026 21:15:46 +0000</pubDate>
      <link>https://dev.to/dominikbullo/half-a-day-not-a-week-one-nix-flake-for-three-machines-515k</link>
      <guid>https://dev.to/dominikbullo/half-a-day-not-a-week-one-nix-flake-for-three-machines-515k</guid>
      <description>&lt;p&gt;My personal MacBook had a disagreement with a little bit of water. Got drowned. Basically all data lost.&lt;/p&gt;

&lt;p&gt;When it came back from repair, I cloned the repo and ran one command: &lt;code&gt;nix run .#build-switch&lt;/code&gt;. About ninety minutes later, the Dock looked right, zsh was configured, Homebrew was installed with all the casks, and my terminal opened with the correct font.&lt;/p&gt;

&lt;p&gt;I have never not appreciated that.&lt;/p&gt;




&lt;p&gt;The setup is one &lt;a href="https://nixos.wiki/wiki/Flakes" rel="noopener noreferrer"&gt;Nix flake&lt;/a&gt; managing three machines: personal MacBook, work MacBook, NixOS desktop. They share a 70+ package core — same shell, same tools, same muscle memory everywhere. The 10% that differs (work casks, personal side projects, different Dock layouts) lives in per-host config.&lt;/p&gt;

&lt;p&gt;A few things that were more interesting to build than I expected:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Declarative Dock management&lt;/strong&gt; — an activation script that diffs the current layout against a declared list, removes extras, adds missing entries. Fresh machine: correct Dock, automatically.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;launchd automation with guard files&lt;/strong&gt; — one-time agents that run once, write a sentinel file, then skip on every subsequent rebuild. Colima starts at login. Spotlight loses Cmd+Space to Raycast. All in config.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Brave profile launchers&lt;/strong&gt; — generated shell scripts (&lt;code&gt;brave-personal&lt;/code&gt;, &lt;code&gt;brave-work&lt;/code&gt;) that appear in PATH automatically.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The part I found hardest to explain to people: this isn't a shell script that installs things. It's a description of desired state. Remove a package from the config and rebuild — it's gone. The system converges to what the config says, not what happened to accumulate over years.&lt;/p&gt;




&lt;p&gt;The full post covers the four-layer architecture, the shared/per-host split in detail, how agenix + YubiKey handle secrets, and the real trade-offs (first setup is ~90 minutes; the Nix language will confuse you; "reproducible" has limits macOS permissions won't let you cross).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://bullo.sk/blog/nix-darwin-multi-host-setup" rel="noopener noreferrer"&gt;Read the full post on bullo.sk →&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Config repo: &lt;a href="https://github.com/dominikbullo/nix-config" rel="noopener noreferrer"&gt;github.com/dominikbullo/nix-config&lt;/a&gt;&lt;/p&gt;

</description>
      <category>automation</category>
      <category>cli</category>
      <category>productivity</category>
      <category>tooling</category>
    </item>
  </channel>
</rss>
