<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Nixos on ilikeorangutans</title><link>https://kuelzer.ca/tags/nixos/</link><description>Recent content in Nixos on ilikeorangutans</description><generator>Hugo</generator><language>en</language><copyright>© 2026 Jakob Külzer</copyright><lastBuildDate>Sat, 18 Apr 2026 22:59:44 -0400</lastBuildDate><atom:link href="https://kuelzer.ca/tags/nixos/index.xml" rel="self" type="application/rss+xml"/><item><title>Passwordless sudo with remote `nixos-rebuild` and SSH keys</title><link>https://kuelzer.ca/posts/2026-04-18/remote-nixos-rebuild-ssh-key-sudo/</link><pubDate>Sat, 18 Apr 2026 14:58:23 -0400</pubDate><guid>https://kuelzer.ca/posts/2026-04-18/remote-nixos-rebuild-ssh-key-sudo/</guid><description>&lt;p&gt;In my homelab I now have a few machines that run NixOS. This came to be because I wanted the ability to quickly rebuild machines from scratch without having to fiddle with individual settings. Thanks to NixOS I now have a repository that holds a flake that can build bootable images and perform remote &lt;code&gt;nixos-rebuild switch&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Having the ability to remotely perform &lt;code&gt;nixos-rebuild switch&lt;/code&gt; is great. All changes are tracked in git, I can standardize certain aspects via Nix modules and it covers all aspects of a system, something I never really got to work reliably in Ansible. Remote &lt;code&gt;nixos-rebuild&lt;/code&gt; switch works by specifying &lt;code&gt;--target-host user@host&lt;/code&gt; which will use ssh to perform switch on the other machine. If pubkeys are set up authentication will be automatic. However, if the remote user is not root, and it shouldn&amp;rsquo;t be, &lt;code&gt;sudo&lt;/code&gt; is required via &lt;code&gt;--sudo&lt;/code&gt; and &lt;em&gt;that&lt;/em&gt; will require password and with &lt;code&gt;-S&lt;/code&gt; &lt;code&gt;nixos-rebuild&lt;/code&gt; will ask you for the password. Not ideal.&lt;/p&gt;</description></item><item><title>Building NixOS images for aarch64 from a x86 Build Platform</title><link>https://kuelzer.ca/posts/2026/02/28/building-nixos-images-for-aarch64-from-a-x86-build-platform/</link><pubDate>Sat, 28 Feb 2026 14:28:39 -0500</pubDate><guid>https://kuelzer.ca/posts/2026/02/28/building-nixos-images-for-aarch64-from-a-x86-build-platform/</guid><description>&lt;p&gt;In my homelab I run many different single board computers, among them Odroid M1s. However, there&amp;rsquo;s various versions of Raspbian, Armbian, and Debian, each of them using some custom tweaks. And that&amp;rsquo;s a lot of time to maintain them. So I really like the idea of NixOS and read that it can be used to build bootable images for computers. I haven&amp;rsquo;t fully built intuition for all parts in this so it took me a while to get this working. Here&amp;rsquo;s my notes.&lt;/p&gt;</description></item></channel></rss>