<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Nix on Ivon's Blog</title><link>https://ivonblog.com/en-us/tags/nix/</link><description>Recent content in Nix on Ivon's Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</managingEditor><webMaster>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</webMaster><copyright>You are welcome to share articles of Ivon's Blog (ivonblog.com). Please include the original URL when citing articles, and abide by CC BY-NC-ND 4.0 license. For commercial use, please write an e-mail to me.</copyright><lastBuildDate>Thu, 23 Oct 2025 09:00:00 +0800</lastBuildDate><atom:link href="https://ivonblog.com/en-us/tags/nix/index.xml" rel="self" type="application/rss+xml"/><item><title>Creating a Linux Desktop World with Language: The Philosophy of NixOS Programs from a Linguistic Perspective</title><link>https://ivonblog.com/en-us/posts/creating-a-linux-desktop-by-language-the-philosophy-of-nixos/</link><pubDate>Thu, 23 Oct 2025 09:00:00 +0800</pubDate><author>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</author><guid>https://ivonblog.com/en-us/posts/creating-a-linux-desktop-by-language-the-philosophy-of-nixos/</guid><description>&lt;!-- Co-translated by ChatGPT --&gt;
&lt;p&gt;Creating a Desktop World with Language: The Philosophy of NixOS from a Linguistic Perspective&lt;/p&gt;
&lt;p&gt;Creating a Desktop by Language: The Philosophy of NixOS&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
 &lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt=""
 src="https://ivonblog.com/en-us/posts/creating-a-linux-desktop-by-language-the-philosophy-of-nixos/images/nixos-pepe.webp"
 onerror="this.onerror=null;this.src='https://ivonblog.com/images/cannotloadimage.avif'"
 width="400"
 height="400"&gt;&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;This article is something I impulsively had ChatGPT help me bullshit into existence after I took a linguistics Semantics course and played with NixOS for a while. I wrote the outline, then asked AI to help fill in the details. When I presented it on stage, everyone, including the professor, was completely baffled.&lt;/p&gt;
&lt;p&gt;Actually, I also had no idea what the fuck I was doing.&lt;/p&gt;

&lt;h2 class="relative group"&gt;1. The Third Operating System
 &lt;div id="1-the-third-operating-system" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#1-the-third-operating-system" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Master Yoda once said: There&amp;rsquo;s another.&lt;/p&gt;
&lt;p&gt;In the world of operating systems, besides Windows and macOS, there is actually a third powerful system world: Linux.&lt;/p&gt;
&lt;p&gt;If Windows is a convenience store and macOS is a boutique coffee shop, then Linux is like a coffee lover who grows their own beans, roasts them, and brews them themselves. And Linux can have many branches, each with its own recipe. These are called Linux distributions.&lt;/p&gt;
&lt;p&gt;One special Linux distribution: NixOS.&lt;/p&gt;
&lt;p&gt;It is not only a system, but also a philosophy of &amp;ldquo;describing the computer world with language.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;Let us talk about NixOS starting from language.&lt;/p&gt;
&lt;p&gt;If the meaning of language can be expressed with mathematical or logical rules, then we can turn language into something as precise as a program.&lt;/p&gt;
&lt;p&gt;Speaking is also creating a world. All input and output can be seen as a function: a certain input necessarily produces a certain result, with no exceptions.&lt;/p&gt;
&lt;p&gt;This sounds a little crazy, right? But the linguist Montague also once tried to turn language into mathematical formulas, so I am merely continuing the tradition (laughs&lt;/p&gt;

&lt;h2 class="relative group"&gt;2. Linguistic Concepts
 &lt;div id="2-linguistic-concepts" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#2-linguistic-concepts" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;The British philosopher John Austin proposed &amp;ldquo;speech acts&amp;rdquo; (Speech Act Theory), where saying a sentence can change reality, such as &amp;ldquo;I now pronounce you married.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;Then what if we could use language not merely to marry people, but to &amp;ldquo;make an entire computer software world appear&amp;rdquo;?&lt;/p&gt;
&lt;p&gt;NixOS lets you write a configuration file, and then the entire system generates itself.&lt;/p&gt;
&lt;p&gt;NixOS is a declarative system composed using the Nix package manager.&lt;/p&gt;
&lt;p&gt;In a typical Linux system, you have to install every piece of software yourself and configure it yourself.&lt;/p&gt;
&lt;p&gt;NixOS, by contrast, only requires you to describe the world you want with a few lines of text, and it automatically builds it.&lt;/p&gt;
&lt;p&gt;Declarative vs. Imperative&lt;/p&gt;
&lt;p&gt;Traditional Linux is imperative: you operate the system &amp;ldquo;step by step&amp;rdquo; with commands.&lt;/p&gt;
&lt;p&gt;NixOS is declarative: you &amp;ldquo;describe&amp;rdquo; the ideal state with a configuration file, and it can be reached in one move.&lt;/p&gt;
&lt;p&gt;System as Code: the embodiment of language.&lt;/p&gt;
&lt;p&gt;Nix configuration file = the syntax tree of the operating system.&lt;/p&gt;
&lt;p&gt;Every package setting is a linguistic unit (lexeme).&lt;/p&gt;
&lt;p&gt;The entire operating system is the realization of an utterance.&lt;/p&gt;
&lt;p&gt;Written as a formula:&lt;/p&gt;
&lt;p&gt;For a NixOS system:&lt;/p&gt;</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://ivonblog.com/en-us/posts/creating-a-linux-desktop-by-language-the-philosophy-of-nixos/featured.webp"/></item></channel></rss>