<p>Yesterday I explained that Nix, or specifically NixOS, <a href="/daily/2024/11/27/nix-as-an-operating-system">can be used to manage your entire operating system</a> in a declarative and reproducible way.</p>
<p>My initial experience was running it on my laptop as a replacement for another Linux distribution, which I use to configure everything about my laptop and development environment, including my i3 window manager, Neovim and tmux configurations.</p>
<p>I recently also started to use it on a new VPS to host several static websites, including this one and <a href="/blog/uis-ive-rebuilt-tailwind-css">various examples I've created as demos</a> or for presentations.</p>
<p>Similarly to my laptop, I was able to declaratively install any required utilities, enable the Nginx web server, open firewall ports, add my virtual hosts and create and apply the required SSL certificates.</p>
<p>And I can do this locally using <a href="https://github.com/opdavies/dotfiles/tree/ec2767adfb6667184f884080a4f9b5d2a388a03d/nix/hosts/hetznix">the same NixOS configuration files</a> and applying it to the remote server.</p>
<p>Yesterday I explained that Nix, or specifically NixOS, <a href="/daily/2024/11/27/nix-as-an-operating-system">can be used to manage your entire operating system</a> in a declarative and reproducible way.</p>
<p>My initial experience was running it on my laptop as a replacement for another Linux distribution, which I use to configure everything about my laptop and development environment, including my i3 window manager, Neovim and tmux configurations.</p>
<p>I recently also started to use it on a new VPS to host several static websites, including this one and <a href="/blog/uis-ive-rebuilt-tailwind-css">various examples I've created as demos</a> or for presentations.</p>
<p>Similarly to my laptop, I was able to declaratively install any required utilities, enable the Nginx web server, open firewall ports, add my virtual hosts and create and apply the required SSL certificates.</p>
<p>And I can do this locally using <a href="https://github.com/opdavies/dotfiles/tree/ec2767adfb6667184f884080a4f9b5d2a388a03d/nix/hosts/hetznix">the same NixOS configuration files</a> and applying it to the remote server.</p>