<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>skenon.dev</title>
    <link rel="self" type="application/atom+xml" href="https://skenon.dev/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://skenon.dev"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2026-11-07T00:00:00+00:00</updated>
    <id>https://skenon.dev/atom.xml</id>
    <entry xml:lang="en">
        <title>My NixOS homelab setup</title>
        <published>2026-11-07T00:00:00+00:00</published>
        <updated>2026-11-07T00:00:00+00:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://skenon.dev/technical/nixos-homelab/"/>
        <id>https://skenon.dev/technical/nixos-homelab/</id>
        
        <content type="html" xml:base="https://skenon.dev/technical/nixos-homelab/">&lt;p&gt;A teenage dream of mine has been to have my own homeserver, and well, write about it.
So here I am fulfilling my dream.&lt;/p&gt;
&lt;p&gt;It is not &quot;done&quot;, it will be forever in continuous improvement and do expect updates.&lt;/p&gt;
&lt;h1 id=&quot;hardware-setup&quot;&gt;Hardware setup&lt;/h1&gt;
&lt;p&gt;Years ago I was using a Raspberry Pi 3B+ and running &lt;a rel=&quot;external&quot; href=&quot;https://nextcloudpi.com&quot;&gt;nextcloud pi&lt;/a&gt; on it, it was not really usable, but still fun to play with.&lt;/p&gt;
&lt;p&gt;Now I repurposed my old laptop as home server, and compared to running Nextcloud on a Raspberry Pi, it feels overkill, almost a waste.&lt;/p&gt;
&lt;p&gt;Its specs are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Intel Core i7-8550U&lt;/li&gt;
&lt;li&gt;16 GB of ram (Sam Altman leave me alone)&lt;/li&gt;
&lt;li&gt;It has an integrated GPU, an Intel UHD 620&lt;/li&gt;
&lt;li&gt;and a discrete AMD Radeon R7 M340, which so far, I have lacked an use for&lt;/li&gt;
&lt;li&gt;a ssd of 128 gb (holding the OS)&lt;/li&gt;
&lt;li&gt;a hdd of 1 tb (holding data)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Both disks are internal and connected to the motherboard with SATA.&lt;/p&gt;
&lt;p&gt;I am not overly concerned about reliability (yet), as I do not keep anything which is sensitive or which I need to rely on the homeserver (yet). If the power goes out, as happened a few days ago, well I need to restart it, and I am fine with it for now.&lt;/p&gt;
&lt;p&gt;I probably could insert the battery of the laptop as a &quot;UPS&quot;, but I am rather concerned that it could catch fire, doesn&#39;t matter the low likelihood, the risk is not something I am willing to put up with.
&lt;small&gt;As a side-note, yes, also the laptop could catch fire, but I would consider that risk to be much smaller than the one associated with a battery.&lt;/small&gt;&lt;/p&gt;
&lt;h2 id=&quot;location&quot;&gt;Location&lt;/h2&gt;
&lt;p&gt;I would usually not include such a detail, but the location is really just a &quot;match made in heaven&quot;:
Next to where I have my router, there is a radiator which is never turned on, and the laptop slides perfectly in between the rods. Easy access to both power and networking.&lt;/p&gt;
&lt;img src=&quot;https://skenon.dev/processed_images/laptop.8d0d5883b92fd4fd.png&quot; width=&quot;361&quot; height=&quot;600&quot; alt=&quot;Laptop&quot; /&gt;
&lt;h2 id=&quot;power&quot;&gt;Power&lt;/h2&gt;
&lt;p&gt;I am not measuring power continuously yet, so treat these numbers as a heuristic and not as a scientific measure. When idle, the system draw around 2 watts (the number we care about), and the CPU spec allows it to go up to something around 25 watts busy. 2 watts when idle, I do treat as very acceptable.&lt;/p&gt;
&lt;p&gt;Additionally, I undervolted the CPU and have enabled &lt;code&gt;powertop&lt;/code&gt; autotune. More on it later.&lt;/p&gt;
&lt;h1 id=&quot;nixos-yet-another-nixos-glaze&quot;&gt;NixOS - yet another NixOS glaze&lt;/h1&gt;
&lt;p&gt;I have &quot;hinted&quot; to it in my previous post, that my server runs on NixOS. I got convinced by my friends who delivered more than one Ted Talk, illustrating how amazing NixOS is. And I concur, it truly is amazing.&lt;/p&gt;
&lt;p&gt;I did not find the learning curve to be as steep as many say it is, I found it easier than installing arch (and or managing arch) by a long shot (not that it is inherently particularly hard). Admittedly, I am not using nix to the full extend it can be used, for instance I am not really using flakes yet, nor does my configuration have overrides or custom packages.&lt;/p&gt;
&lt;p&gt;The convenience of NixOS is incredible. The same previous blog post showcases the utility of NixOS quite clearly.&lt;/p&gt;
&lt;p&gt;The usual picture, on traditional systems, is the following (and the one I have experienced personally and professionally):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;There are multiple different configuration files scattered in the filesystem&lt;/li&gt;
&lt;li&gt;Every service has its own configuration conventions and or language&lt;/li&gt;
&lt;li&gt;Service files have to be managed independently of the package / service itself&lt;/li&gt;
&lt;li&gt;The firewall has to be configured, on top, on a per service basis&lt;/li&gt;
&lt;li&gt;Many packages / services require &quot;hacks&quot; to work as intended, which one might do and forget, making setting up a second machine with the same service, a harder endeavor.&lt;/li&gt;
&lt;li&gt;If things break, they are broken.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;NixOS takes care of all the annoyances mentioned above. Everything is managed and configured inside your nix configuration.&lt;/p&gt;
&lt;p&gt;If I or an update breaks something, it is trivial to rollback. Switching machines entails in copying your configuration and running &lt;code&gt;nixos-rebuild switch&lt;/code&gt; and your setup is replicated.&lt;/p&gt;
&lt;p&gt;While NixOS has it&#39;s issue, both technical and around governance/community, I do think it is setting the general direction of operating systems for the future, at least for what Linux is concerned.&lt;/p&gt;
&lt;h1 id=&quot;services&quot;&gt;Services&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;external&quot; href=&quot;https://www.beszel.dev&quot;&gt;Beszel&lt;/a&gt;&lt;/strong&gt; for system monitoring. Although it is a great piece of software I am still on the search for something different. I really liked netdata before the whole cloud thing.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;external&quot; href=&quot;https://calibre-ebook.com&quot;&gt;Calibre&lt;/a&gt;&lt;/strong&gt; One of the services which are not fully declarative. Wrote a short guide on how I got it to work &lt;a rel=&quot;external&quot; href=&quot;https://discourse.nixos.org/t/setting-up-calibre-server-on-nixos/80471&quot;&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;external&quot; href=&quot;https://www.navidrome.org&quot;&gt;Navidrome&lt;/a&gt;&lt;/strong&gt; for music.&lt;/li&gt;
&lt;li&gt;The whole &lt;strong&gt;&lt;a rel=&quot;external&quot; href=&quot;https://wiki.servarr.com&quot;&gt;arr&lt;/a&gt;&lt;/strong&gt; suite and &lt;strong&gt;&lt;a rel=&quot;external&quot; href=&quot;https://jellyfin.org&quot;&gt;Jellyfin&lt;/a&gt;&lt;/strong&gt;. Enough said about that.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;external&quot; href=&quot;https://forgejo.org&quot;&gt;Forgejo&lt;/a&gt;&lt;/strong&gt; although making little use of it right now.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;external&quot; href=&quot;https://linkwarden.app&quot;&gt;Linkwarden&lt;/a&gt;&lt;/strong&gt; as a bookmark manager. The website scared me into believing it would be very heavyweight, which it is comparatively, but absolutely manageable (as of time of writing it is using ≈ 700mb).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;external&quot; href=&quot;https://docs.paperless-ngx.com/setup/&quot;&gt;Paperless&lt;/a&gt;&lt;/strong&gt; to manage bureaucracy.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;external&quot; href=&quot;https://www.mumble.info&quot;&gt;Mumble-server&lt;/a&gt;&lt;/strong&gt; for low latency VoIP calls (I love that piece of software). Testing my setup even led to my first &lt;a rel=&quot;external&quot; href=&quot;https://github.com/mumble-voip/mumble/pull/7473&quot;&gt;bug fix&lt;/a&gt; in a open-source project, even if just a two loc change.&lt;/li&gt;
&lt;li&gt;As homepage I just use a static HTML file served from &lt;strong&gt;&lt;a rel=&quot;external&quot; href=&quot;https://www.lighttpd.net&quot;&gt;lighttpd&lt;/a&gt;&lt;/strong&gt;. I perceived homepage software to be too bloated for my setup.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;external&quot; href=&quot;https://www.qbittorrent.org&quot;&gt;Qbittorrent&lt;/a&gt;&lt;/strong&gt; → see below&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;external&quot; href=&quot;https://www.wireguard.com&quot;&gt;Wireguard&lt;/a&gt;&lt;/strong&gt; → see below&lt;/li&gt;
&lt;/ul&gt;
&lt;img src=&quot;https://skenon.dev/processed_images/services.bc74c7b9ab545d39.png&quot; width=&quot;531&quot; height=&quot;600&quot; alt=&quot;Homepage&quot; /&gt;
&lt;p&gt;I won&#39;t go over the setup of each service, as many did not require anything which strays from standard NixOS options / configuration. I only describe those which are of interest (to the only reader, me).&lt;/p&gt;
&lt;h2 id=&quot;qbittorrent-and-split-tunneling&quot;&gt;qBittorrent and split tunneling&lt;/h2&gt;
&lt;p&gt;As I prefer having my p2p traffic behind a VPN, but not the rest of my traffic I wanted to set up split tunnelling, which turned out to be one of the hardest parts of the setup and I am still not fully satisfied. The reason why I am not fully satisfied that &lt;code&gt;systemd-resolved&lt;/code&gt; does not support per interface DNS routing without network name-spacing, a thing to which I have not come yet. Meaning that DNS would leak from my VPN connection. For now I am using secure DNS server, that if leaked, don&#39;t reveal much about anything, but the setup is not ideal. Luckily the traffic going through the VPN doesn&#39;t require much DNS at all.&lt;/p&gt;
&lt;p&gt;I manage all my networking trough &lt;a rel=&quot;external&quot; href=&quot;https://www.freedesktop.org/software/systemd/man/latest/systemd.network.html&quot;&gt;systemd.network&lt;/a&gt;. To enable it system-wide set &lt;code&gt;networking.useNetworkd = true;&lt;/code&gt;. To have a split tunneled VPN, I created a new netdev (virtual network) device and populate it with the config received from my VPN provider, then I configure this new interface to route all the traffic coming from the &lt;code&gt;qbittorrent&lt;/code&gt; user through it. Inside the qBittorrent config I bind it both to the VPN&#39;s IP address and the interface, meaning if the VPN interface goes down, no traffic (is supposed) to leak.&lt;/p&gt;
&lt;p&gt;A maybe better config would be using nixos-containers, putting the qbittorrent service inside, and then routing the container traffic through the vpn, or how I did previously, create a virtual machine which its sole purpose is to run qbittorrent and then have a shared directory. There is &lt;a rel=&quot;external&quot; href=&quot;https://microvm-nix.github.io/microvm.nix/&quot;&gt;microvm.nix&lt;/a&gt; for instance which would suit a setup like this well. I consider the 1 - 3% performance loss to be negligible for a service being idle most of the time.&lt;/p&gt;
&lt;p&gt;Below the config. I provide it in full, because it took me much longer than I would like to admit to figure it out.&lt;/p&gt;
&lt;details&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #BFBDB6; background-color: #0D1017;&quot; &gt;&lt;code data-lang=&quot;nix&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  systemd&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;network&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;netdevs&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;wg0&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    netdevConfig&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;      Kind&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;wireguard&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;      Name&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;wg0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;      MTUBytes&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; 1320&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    wireguardConfig&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;      PrivateKeyFile&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;/etc/wireguard/wg0-private.key&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;      RouteTable&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; 51820&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    wireguardPeers&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;      {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;        PublicKey&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;        PresharedKeyFile&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;/etc/wireguard/wg0-preshared.key&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;        Endpoint&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;        AllowedIPs&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt;          &amp;quot;0.0.0.0/0&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt;          &amp;quot;::/0&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        ]&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;        PersistentKeepalive&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; 15&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;      }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    ]&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  }&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  systemd&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;network&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;networks&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;wg0&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    matchConfig&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;wg0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    address&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt;      &amp;quot;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt;      &amp;quot;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    ]&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    networkConfig&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;      BindCarrier&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;eno1&amp;quot;&lt;/span&gt;&lt;span&gt; ]&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;      DNS&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt;        &amp;quot;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt;        &amp;quot;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;      ]&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    routingPolicyRules&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;      {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;        Table&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;main&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;        User&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;qbittorrent&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;        SuppressPrefixLength&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;        Priority&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; 30000&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;        Family&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;both&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;      }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;      {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;        Table&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; 51820&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;        User&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;qbittorrent&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;        Priority&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; 30001&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;        Family&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;both&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;      }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    ]&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  }&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/details&gt;
&lt;h2 id=&quot;wireguard-accessing-my-homeserver-from-outside&quot;&gt;Wireguard - accessing my homeserver from outside&lt;/h2&gt;
&lt;p&gt;The hassle and risk of opening up my homelab to the internet is not worth it for me; especially in this &lt;a rel=&quot;external&quot; href=&quot;https://cvetodo.com/cve-statistics&quot;&gt;day and age&lt;/a&gt;. Hence, the only service I expose is wireguard, making it possible to securely access my homeserver from 🌟 anywhere in the world 🌟. I am fine with this risk, as wireguard&#39;s attack surface is very small, generally difficult to enumerate in automatic scans and if there is a wireguard CVE in the wild, much smarter persons than me will be rushing to fix it and there will be much more interesting targets at than me.&lt;/p&gt;
&lt;p&gt;For now I manage my keys manually, I might write a short utility that helps me automate it.&lt;/p&gt;
&lt;p&gt;On MacOS, for instance, wireguard supports on-demand-vpn out of the box. Wherever I sit, I can &lt;code&gt;ssh 10.0.0.164&lt;/code&gt; and find myself with a shell inside my server. It is incredible convenient and works flawlessly. In the same spirit I can just open Jellyfin and watch a movie wherever I find myself at.&lt;/p&gt;
&lt;p&gt;One could rely on services such as &lt;a rel=&quot;external&quot; href=&quot;https://tailscale.com&quot;&gt;tailscale&lt;/a&gt; to be able to have a VPN to ones homeserver without needing to open ports, but I&#39;d rather not rely on a external service (if I can avoid it), especially in a setup as mine. I feel like, it would defeat the purpose of having everything self-hosted when then one requires the benevolence of a free plan to access its own server. One could use the OSS alternative &lt;a rel=&quot;external&quot; href=&quot;https://tailscale.com/blog/how-nat-traversal-works&quot;&gt;headscale&lt;/a&gt;, but in a similar vein, I do not want to pay for a small VPS either.&lt;/p&gt;
&lt;p&gt;I might consider to add tailscale as a backup access method in the future.
&lt;/config&gt;&lt;/p&gt;
&lt;p&gt;Note, the port needs to be forwarded in your router as well.&lt;/p&gt;
&lt;h3 id=&quot;dynamic-dns&quot;&gt;Dynamic DNS&lt;/h3&gt;
&lt;p&gt;As I do not have a static &lt;code&gt;ipv4&lt;/code&gt; address (yet), I use &lt;a rel=&quot;external&quot; href=&quot;https://www.duckdns.org&quot;&gt;duckdns&lt;/a&gt; as a dynamic DNS provider; there are alternatives, but I also used them years ago and the experience was pleasant. After creating an account and receiving the token, to set it up correctly NixOS required 4 loc. The DDNS entry is then used by wireguard to resolve to my homelab.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #BFBDB6; background-color: #0D1017;&quot; &gt;&lt;code data-lang=&quot;nix&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;services&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;duckdns&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  enable&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; true&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  domains&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;my-domain&amp;quot;&lt;/span&gt;&lt;span&gt; ]&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  tokenFile&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;/etc/ddns/token&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&quot;file-system-set-up&quot;&gt;File system set up&lt;/h2&gt;
&lt;p&gt;The SSD holds the operating system, while I use the HDD as media archival. The SSD is formatted as &lt;code&gt;ext4&lt;/code&gt;, while the HDD is formatted as &lt;code&gt;btrfs&lt;/code&gt;. If the team behind fedora conisders &lt;code&gt;btrfs&lt;/code&gt; to be mature enough for production use, I trust their judgement.
One needs to specify the disk for it to be automatically mounted, and I enabled auto scrubbing.&lt;/p&gt;
&lt;details&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #BFBDB6; background-color: #0D1017;&quot; &gt;&lt;code data-lang=&quot;nix&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;fileSystems&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt;&amp;quot;/mnt/data&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  device&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;/dev/disk/by-label/data-disk&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  fsType&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;btrfs&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  options&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt;    &amp;quot;compress=zstd&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  ]&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;services&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;btrfs&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;autoScrub&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  enable&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; true&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  interval&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;monthly&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  fileSystems&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;/mnt/data&amp;quot;&lt;/span&gt;&lt;span&gt; ]&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/details&gt;
&lt;h2 id=&quot;jellyfin&quot;&gt;Jellyfin&lt;/h2&gt;
&lt;p&gt;A throughly amazing media player. I am always astonished by open source software.
This is the config that enabled hardware decoding for me. I am still not truly sure how or why this combination of settings works. Software truly is magic-like.&lt;/p&gt;
&lt;details&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #BFBDB6; background-color: #0D1017;&quot; &gt;&lt;code data-lang=&quot;nix&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;services&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;jellyfin&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  enable&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; true&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  openFirewall&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; true&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;environment&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;sessionVariables&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  LIBVA_DRIVER_NAME&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;iHD&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;systemd&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;services&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;jellyfin&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;environment&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;LIBVA_DRIVER_NAME&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;iHD&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;users&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;users&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;jellyfin&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;extraGroups&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;video&amp;quot; &amp;quot;render&amp;quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;boot&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;kernelParams&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;i915.enable_guc=2&amp;quot;&lt;/span&gt;&lt;span&gt; ]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;hardware&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;graphics&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  enable&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; true&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  extraPackages&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #FF8F40;&quot;&gt; with&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; pkgs&lt;/span&gt;&lt;span&gt;; [&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; intel-ocl intel-media-driver intel-compute-runtime&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/details&gt;
&lt;h2 id=&quot;power-and-laptop-specific-setup&quot;&gt;Power and laptop specific setup&lt;/h2&gt;
&lt;p&gt;Firstly, the laptop has to work with its lid closed&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #BFBDB6; background-color: #0D1017;&quot; &gt;&lt;code data-lang=&quot;nix&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;services&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;logind&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  settings&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;Login&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    HandleLidSwitch&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;ignore&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    HandleLidSwitchExternalPower&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;ignore&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    HandleLidSwitchDocked&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;ignore&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  }&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then I undervolted it. I decreased the voltage until it crashed. I tested it with &lt;code&gt;s-tui&lt;/code&gt;.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #BFBDB6; background-color: #0D1017;&quot; &gt;&lt;code data-lang=&quot;nix&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;services&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;undervolt&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  enable&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; true&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  coreOffset&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; = -&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  uncoreOffset&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; = -&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  gpuOffset&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; = -&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;40&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  analogioOffset&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; null&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To have &lt;code&gt;powertop&lt;/code&gt; apply autotuning automatically&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #BFBDB6; background-color: #0D1017;&quot; &gt;&lt;code data-lang=&quot;nix&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;powerManagement&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;powertop&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;enable&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; true&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I did not create a swap partition or a swap file, but enabled zram &lt;code&gt;zramSwap.enable = true&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;As I do have no need for wireless networking, and it can be considered hardening, I disabled wireless networking. For good measure, I also blacklisted the kernel modules.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #BFBDB6; background-color: #0D1017;&quot; &gt;&lt;code data-lang=&quot;nix&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;hardware&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;bluetooth&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;enable&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; false&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;networking&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;wireless&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;enable&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; false&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;boot&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;blacklistedKernelModules&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt;&amp;quot;iwlwifi&amp;quot; &amp;quot;bluetooth&amp;quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Additionally I disabled &lt;code&gt;rfkill-service&lt;/code&gt;, as there is no need for it if networking is disabled&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #BFBDB6; background-color: #0D1017;&quot; &gt;&lt;code data-lang=&quot;nix&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;systemd&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;services&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt;  &amp;quot;systemd-rfkill@&amp;quot;&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;enable&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; false&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt;  &amp;quot;systemd-rfkill&amp;quot;&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;enable&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; false&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I experienced this weird bug, in which on a reboot, the system would shutdown correctly, but not turn back on. I fixed it with.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #BFBDB6; background-color: #0D1017;&quot; &gt;&lt;code data-lang=&quot;nix&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;boot&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;kernelParams&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt;&amp;quot;reboot=cold&amp;quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h1 id=&quot;hardening&quot;&gt;Hardening&lt;/h1&gt;
&lt;p&gt;Security hardening is perfect optionality (and I find it very fun): There are almost no downsides (potentially some performance and usability) but a lot of potential upsides (of not getting pwned).&lt;/p&gt;
&lt;p&gt;While I hardened it to paranoia for a few weeks, I relaxed some security, as I conducted a more realistic assessment of which settings I can gain an advantage from and which were overkill.&lt;/p&gt;
&lt;p&gt;Not every option I set will be covered.&lt;/p&gt;
&lt;p&gt;The current setup is as follows&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;blacklisted unused kernel modules&lt;/li&gt;
&lt;li&gt;prevent replacing the running kernel image and loading of kernel modules at runtime&lt;/li&gt;
&lt;li&gt;some more kernel hardening&lt;/li&gt;
&lt;li&gt;restricted who can connect to the nix-daemon&lt;/li&gt;
&lt;li&gt;your routine SSH hardening&lt;/li&gt;
&lt;li&gt;&quot;comprehensive-ish&quot; systemd hardening and disabling of everything not needed&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As reference I mostly used&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://xeiaso.net/blog/paranoid-nixos-2021-07-18/&quot;&gt;https://xeiaso.net/blog/paranoid-nixos-2021-07-18/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;NixOS options search&lt;/li&gt;
&lt;li&gt;Looking at what &lt;a rel=&quot;external&quot; href=&quot;https://github.com/cynicsketch/nix-mineral&quot;&gt;nix mineral&lt;/a&gt; is doing&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #BFBDB6; background-color: #0D1017;&quot; &gt;&lt;code data-lang=&quot;nix&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;nix&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;settings&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;allowed-users&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;@wheel&amp;quot;&lt;/span&gt;&lt;span&gt; ]&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;security&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;sudo&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;execWheelOnly&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; true&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;security&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;protectKernelImage&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; true&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #5A6673;font-style: italic;&quot;&gt;# environment.memoryAllocator.provider = &amp;quot;graphene-hardened-light&amp;quot;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;security&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;lockKernelModules&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; true&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class=&quot;giallo&quot; style=&quot;color: #BFBDB6; background-color: #0D1017;&quot; &gt;&lt;code data-lang=&quot;nix&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;boot&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt;kernelParams&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;page_alloc.shuffle=1&amp;quot; &amp;quot;pti=on&amp;quot; &amp;quot;randomize_kstack_offset=on&amp;quot; &amp;quot;vsyscall=none&amp;quot; &amp;quot;init_on_alloc=1&amp;quot;&lt;/span&gt;&lt;span&gt; ]&lt;/span&gt;&lt;span style=&quot;color: #D95757;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;An example of systemd hardening given below is for the calibre-web service. The arbitrary score of the unhardened calibre service (through &lt;code&gt;systemd-analyze security&lt;/code&gt;) was above 8, now it is 1,6.
While the score &lt;code&gt;systemd-analyze&lt;/code&gt; gives is arbitrary in nature, it still gives a nice checklist of everything the service and the service user (in NixOS every service runs in its own user and group) is allowed to do. If the service does not break, there are 0 downsides to having a hardened service, but making it for a potential exploiter much more difficult to move laterally.
Expanding on the example below, now the service user and the service itself (non exhaustive list)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;cannot gain new privileges&lt;/li&gt;
&lt;li&gt;cannot creating setuid binaries&lt;/li&gt;
&lt;li&gt;cannot change execution personality&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/home&lt;/code&gt; &lt;code&gt;/root&lt;/code&gt; and &lt;code&gt;/run/user&lt;/code&gt; are inaccessible&lt;/li&gt;
&lt;li&gt;private &lt;code&gt;/tmp&lt;/code&gt; and &lt;code&gt;/proc&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;access kernel log&lt;/li&gt;
&lt;li&gt;load or unload modules&lt;/li&gt;
&lt;li&gt;have private PID namespace&lt;/li&gt;
&lt;li&gt;only allow &lt;code&gt;ipv4&lt;/code&gt; and &lt;code&gt;ipv6&lt;/code&gt; socket creation&lt;/li&gt;
&lt;/ul&gt;
&lt;details&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #BFBDB6; background-color: #0D1017;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;systemd.services.calibre-server.serviceConfig = {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  CapabilityBoundingSet = &amp;quot;&amp;quot;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  NoNewPrivileges = true;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  LockPersonality = true;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  PrivateDevices = true;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  ProtectClock = true;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  ProtectKernelLogs = true;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  ProtectKernelModules = true;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  PrivateMounts = true;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  ProtectHostname = true;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  ProtectProc = &amp;quot;invisible&amp;quot;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  SystemCallArchitectures = &amp;quot;native&amp;quot;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  ProtectKernelTunables = true;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  RestrictRealtime = true;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  PrivateIPC = true;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  PrivatePIDs = true;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  PrivateTmp = true;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  PrivateUsers = true;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  ProtectHome = true;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  ProtectSystem = &amp;quot;full&amp;quot;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  RestrictNamespaces = true;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  RestrictSUIDSGID = true;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  RemoveIPC = true;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  RestrictAddressFamilies = [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;quot;AF_UNIX&amp;quot; &lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;quot;AF_INET&amp;quot; &lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;quot;AF_INET6&amp;quot; &lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;quot;AF_NETLINK&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  ];&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  SystemCallFilter = [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;quot;@system-service&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  ];&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt; };&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/details&gt;
&lt;p&gt;Every service which had a &quot;bad&quot; score I made sure to harden (where possible, for instance &lt;code&gt;sshd&lt;/code&gt; is not really possible to harden without being unable to subsequently administer the system). I think hardening makes a lot of sense, especially for services like linkwarden or qBittorrent, which connect to the internet and download files to disk.
As always the idea is to have &quot;security in depth&quot;, make lateral movements more difficult, minimize attack surface, minimize blast impact and settings by which you have more to gain than to lose.&lt;/p&gt;
&lt;h2 id=&quot;wonts-in-hardening&quot;&gt;Wonts in hardening&lt;/h2&gt;
&lt;p&gt;The services do not use HTTP&lt;strong&gt;S&lt;/strong&gt;. The pain of managing and trusting self signed certificates is not worth the benefit to have encrypted connections inside my local network. Additionally I connect through wireguard from outside, which encrypts the connection.&lt;/p&gt;
&lt;p&gt;I used to use the hardened grapheneOS malloc, but the performance hit was noticeable, and the security improvement is questionable for my setup. I switched to grapheneOS malloc light, but that broke paperless, hence I disabled it. Some of the improvements which the hardened malloc gives, can be set as kernel parameter (such as zeroing on memory allocation; less paranoid than zeroing on free but much better performance with much of the same benefit), maybe making it less bulletproof, but acceptable for my setup.&lt;/p&gt;
&lt;p&gt;I do not have some fancy unified authentication services for my services, it would be overkill.&lt;/p&gt;
&lt;h1 id=&quot;future-plans&quot;&gt;Future Plans&lt;/h1&gt;
&lt;p&gt;There are some long terms and immediate future plans.&lt;/p&gt;
&lt;p&gt;For once I am thinking of hosting immich. That would imply quite some changes in terms of reliability:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I would need to have a proper backup solution.&lt;/li&gt;
&lt;li&gt;If the the server stops working (power, hardware failure) ⋀ something happens to my phone I might loose pictures.&lt;/li&gt;
&lt;li&gt;Would need more storage space; expansion options are limited besides YOLO-ing it on a USB; the reliability concerns and backup thoughts would not go away.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Either way, even if for now it is acceptable, I should envision some backup strategy.&lt;/p&gt;
&lt;p&gt;Then, setting up vaultwarden. Again, reliability and backup concerns, but the file size would make those two things easier.&lt;/p&gt;
&lt;p&gt;Syncthing, just because it is nice to have. Won&#39;t take much setup.&lt;/p&gt;
&lt;p&gt;If the need arises, I would really like to set-up &lt;code&gt;distccd&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Another thing which I would like to set up, is &lt;code&gt;auditd&lt;/code&gt;.&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>In short, why I love nixOS - how to set up mumble-server on nixOS</title>
        <published>2026-11-01T00:00:00+00:00</published>
        <updated>2026-11-01T00:00:00+00:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://skenon.dev/technical/mumble-on-nixos/"/>
        <id>https://skenon.dev/technical/mumble-on-nixos/</id>
        
        <content type="html" xml:base="https://skenon.dev/technical/mumble-on-nixos/">&lt;p&gt;I have previously written a blog post on how to set up mumble server &lt;a href=&quot;https://skenon.dev/technical/mumble-server/&quot;&gt;[link]&lt;/a&gt; (murmur) on fedora server.&lt;/p&gt;
&lt;p&gt;Now compare it with what I had to do to get it working on NixOS.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #BFBDB6; background-color: #0D1017;&quot; &gt;&lt;code data-lang=&quot;nix&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  services&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;murmur&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    enable&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; true&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    port&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; 22267&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    openFirewall&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; true&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    welcometext&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;...&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  }&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To replicate the same setup I illustrated in the previous blog post, the configuration would be the following:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #BFBDB6; background-color: #0D1017;&quot; &gt;&lt;code data-lang=&quot;nix&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;  services&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;murmur&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    enable&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; true&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    port&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; 22267&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    openFirewall&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; true&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    welcometext&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;...&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    password&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;...&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    users&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FFB454;&quot;&gt;    autobanAttempts&lt;/span&gt;&lt;span style=&quot;color: #F29668;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; 5&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  }&lt;/span&gt;&lt;span style=&quot;color: #BFBDB6B3;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I don&#39;t need to edit any configuration file; I do not need to have a hacky workaround by creating a custom directory; self-signed certificates are already handled.
If I ever switch machines, I can be sure, that it will work as intended.&lt;/p&gt;
&lt;p&gt;Just a quick update, glazing nixOS, more to come.&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Set up mumble-server on fedora server for private use</title>
        <published>2026-02-24T00:00:00+00:00</published>
        <updated>2026-02-24T00:00:00+00:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://skenon.dev/technical/mumble-server/"/>
        <id>https://skenon.dev/technical/mumble-server/</id>
        
        <content type="html" xml:base="https://skenon.dev/technical/mumble-server/">&lt;p&gt;As I couldn&#39;t find a sufficing guide on how to set up Mumble on fedora-server, here is how I set it up.&lt;/p&gt;
&lt;p&gt;It is assumed that ssh is already configured you are familiar with linux.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Create a directory at &lt;code&gt;/etc/murmur&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;No clue why, but the installation script would throw an error if this folder was not present&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Install the mumble-server package &lt;code&gt;dnf install mumble-server&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Create a self-signed certificate, or if you have one from lets encrypt you can configure mumble to use that one. I did&#39;t have one so I generated it myself.&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #BFBDB6; background-color: #0D1017;&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #59C2FF;&quot;&gt;openssl&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; req&lt;/span&gt;&lt;span style=&quot;color: #95E6CB;&quot;&gt; -x509 -nodes -days&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; 3650&lt;/span&gt;&lt;span style=&quot;color: #95E6CB;&quot;&gt; -newkey&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; rsa:2048&lt;/span&gt;&lt;span style=&quot;color: #95E6CB;&quot;&gt; -keyout&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; /etc/keys/mumble-server.key&lt;/span&gt;&lt;span style=&quot;color: #95E6CB;&quot;&gt; -out&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; /etc/keys/mumble-server.crt&lt;/span&gt;&lt;span style=&quot;color: #95E6CB;&quot;&gt; -subj&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; &amp;quot;/CN=SecureComsMumble&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;ol start=&quot;4&quot;&gt;
&lt;li&gt;Give the &lt;code&gt;mumble-server&lt;/code&gt; user the rights to the just generated certificate&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #BFBDB6; background-color: #0D1017;&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #59C2FF;&quot;&gt;chmod&lt;/span&gt;&lt;span style=&quot;color: #D2A6FF;&quot;&gt; 600&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; /etc/keys/mumble-server.key&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #59C2FF;&quot;&gt;chown&lt;/span&gt;&lt;span style=&quot;color: #AAD94C;&quot;&gt; mumble-server:mumble-server /etc/keys/mumble-server.key /etc/keys/mumble-server.crt&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;ol start=&quot;5&quot;&gt;
&lt;li&gt;Go to &lt;code&gt;/etc/murmur.ini&lt;/code&gt; to configure it. The things I changed were
&lt;ul&gt;
&lt;li&gt;The welcome text &lt;code&gt;welcometext=&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;I changed the port to a custom port number which was easier to remember &lt;code&gt;port=&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Specified a server password &lt;code&gt;serverpassword=&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Limited concurrent users to 10 &lt;code&gt;users=10&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Specified &lt;code&gt;sslCert=/etc/keys/mumble-server.crt&lt;/code&gt; and &lt;code&gt;sslKey=/etc/keys/mumble-server.key&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Decreased the autoban threshold&lt;/li&gt;
&lt;li&gt;Of course your requirements might be different then mine, so change the config to your needs.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Enable &lt;code&gt;mumble-server&lt;/code&gt; to start automatically with &lt;code&gt;systemctl enable mumble-server&lt;/code&gt; and start it with &lt;code&gt;systemctl start mumble-server&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Do not forget to allow mumble-traffic in your firewall&lt;/li&gt;
&lt;/ol&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>How I keep books alive</title>
        <published>2025-10-12T00:00:00+00:00</published>
        <updated>2025-10-12T00:00:00+00:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://skenon.dev/thoughts/books-alive/"/>
        <id>https://skenon.dev/thoughts/books-alive/</id>
        
        <content type="html" xml:base="https://skenon.dev/thoughts/books-alive/">&lt;p&gt;This post will give an overview, on how I &#39;keep books alive&#39;: how I manage to save and retrieve useful information even years after having read a book.&lt;/p&gt;
&lt;p&gt;Everything which I find interesting, I like or think I&#39;ll need for further reference, I&#39;ll underline.&lt;/p&gt;
&lt;p&gt;I either export the extracts from my Kindle, or, dictate them to my PC if it is a paper book.&lt;/p&gt;
&lt;p&gt;Each extract becomes it&#39;s own obsidian note.&lt;/p&gt;
&lt;p&gt;I give a title to each extract and then hope that fuzzy search will find the note, once I need it.&lt;/p&gt;
&lt;p&gt;If I sense value in doing it, I dabble in a &quot;Zettelkasten light&quot;: I link related notes to the highlight, add my thoughts to it or try to explain the concept in my own words, to see if I have truly understood it.&lt;/p&gt;
&lt;p&gt;This method has been in place for around 6 years now, and I can confidently state, that it is working, and can source all my outrageous claims shockingly fast.&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>You should mealprep</title>
        <published>2025-10-10T00:00:00+00:00</published>
        <updated>2025-10-10T00:00:00+00:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://skenon.dev/thoughts/mealprep/"/>
        <id>https://skenon.dev/thoughts/mealprep/</id>
        
        <content type="html" xml:base="https://skenon.dev/thoughts/mealprep/">&lt;p&gt;Meal-prepping has been the single biggest improvement in my life of the past three years.
It has been a life-saver, metaphorically speaking.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;It is saving me countless hours. It takes me around 2h - 2.5h to cook, clean and pack away anything from 6 to 10 meals. Compare it to around 2h a day (lunch and dinner) of cooking and cleaning the ROI is extremely good. We&#39;re speaking anything from 3x to 5x, depending how many meals I prepare. It is especially noticeable during exam season, where 1 hour of studying more, might be the difference in a exam.&lt;/li&gt;
&lt;li&gt;It is saving my body liters of cortisol. Every day I&#39;d go through the (first world problem) little hell of: what am I going to cook, most of the time, twice a day, whilst trying to be within my macronutrients goal. Given that weightlifting is one of my major passions, just eating ramen noodles was never an option. This would more stress me and have as consequence that I&#39;d procrastinate cooking. Now, I do not need to think about it at all, and every meal is perfectly within my wider nutritional goals.&lt;/li&gt;
&lt;li&gt;Taste. When hacking together meals on a day-by-day basis, I would go for speed and convenience over taste. Now I actually take the time to cook something which my taste buds approve of, and also can take the time to cook slightly more elaborate dishes.&lt;/li&gt;
&lt;li&gt;I am learning how to cook. In the weekly routine, I wouldn&#39;t have the motivation to try new dishes and or experiment with new ingredients. Now I have entered a iterative process, where I can try new things and with it my understanding of food, and how ingredients play together, are constantly improving.&lt;/li&gt;
&lt;li&gt;It is saving me money. I go buy groceries only when I need to mealprep. I already have a recipe in mind with a very definite set of ingredients which I am going to need. The chance of buying things I do not need, or low effort meals drops to virtually zero. I wouldn&#39;t have the money to order take out either way, but I can see how that would easily cost even more money, reiterating the crazy ROI.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Meal-prepping turned, for me, two very stressful activities, namely cooking and groceries, in something which is bringing me (not kidding) happiness.&lt;/p&gt;
&lt;p&gt;All of a sudden now, I have more time for the things I enjoy, my meals all taste good, I am learning how to cook, and can go through my day with two worries less.
I encourage anyone to try. Generally it is something people do if they want to loose or gain weight. I&#39;d say just do it. You can still eat how you like, but have that much more time on hands.&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>The why and how of this Blog</title>
        <published>2025-04-11T00:00:00+00:00</published>
        <updated>2025-04-11T00:00:00+00:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://skenon.dev/technical/why-and-how/"/>
        <id>https://skenon.dev/technical/why-and-how/</id>
        
        <content type="html" xml:base="https://skenon.dev/technical/why-and-how/">&lt;h1 id=&quot;update&quot;&gt;UPDATE&lt;/h1&gt;
&lt;p&gt;Almost nothing here is valid anymore, as I switched to European hosted cloud and reworked the theme from scratch. Even if I use JetBrains Mono, no text here is AI generated.&lt;/p&gt;
&lt;h1 id=&quot;the-why&quot;&gt;The why&lt;/h1&gt;
&lt;p&gt;Since I was around 15 years old, I played around with the idea, to set up my own blog to write about technical problems that I encountered in my experimentations and how I fixed them. My linux shenanigans brought me down some rabbit holes, which I still think, I should have written about back then. I have many of those draft still in my obsidian vault, which now work as a personal wiki for myself.&lt;/p&gt;
&lt;p&gt;There will be upcoming projects I definitely want to write about and this was as good as an opportunity as ever to finally materialize this lingering idea of mine. And as Ludic &lt;a rel=&quot;external&quot; href=&quot;https://ludic.mataroa.blog/blog/ludics-guide-to-getting-software-engineering-jobs/&quot;&gt;said&lt;/a&gt;, just write! (To be clear, I do this mostly for the sake of having a blog, not specifically to aid in a potential future job search)&lt;/p&gt;
&lt;p&gt;You can expect semi-interesting technical write-ups / post which I will publish for the sake of documentation, the occasional rant and book review and whatever other discovery I make that I think will be worth sharing.&lt;/p&gt;
&lt;p&gt;The RSS feed should be working, so throw it in your reader!&lt;/p&gt;
&lt;h1 id=&quot;the-how&quot;&gt;The how&lt;/h1&gt;
&lt;p&gt;I had been eying this domain for close to two years now, and bought it as a spontaneous decision a few weeks back. Shoutout to &lt;a rel=&quot;external&quot; href=&quot;https://porkbun.com/&quot;&gt;porkbun&lt;/a&gt;, their slogan holds true, it was a oddly satisfying experience.&lt;/p&gt;
&lt;p&gt;To generate the website, I used &lt;a rel=&quot;external&quot; href=&quot;https://www.getzola.org/&quot;&gt;Zola&lt;/a&gt;, a static website generator written in Rust. It took me longer to figure Zola out than expected, but it was smooth sailing after some trial and error. Originally I wanted to go with the &lt;a rel=&quot;external&quot; href=&quot;https://www.getzola.org/themes/apollo/&quot;&gt;Apollo theme&lt;/a&gt;, which ended up only inspiring the website. For the rest, I tried to create a brutalist look and feel and took various inspiration from &lt;a rel=&quot;external&quot; href=&quot;https://brutalistwebsites.com/&quot;&gt;this gem of a website&lt;/a&gt;. True to my education as a software &lt;strong&gt;engineer&lt;/strong&gt;, graphic design is not my strongest, but had nonetheless fun trying to come up with something coherent. (Update, started using the bear-blog theme, my friends were too thrown off by the brutalist look)&lt;/p&gt;
&lt;p&gt;This blog is hosted on Cloudflare pages. Everyone (almost everyone) on HN praises Cloudflare pages plenty and I trusted the hivemind on this one. Moreover I didn&#39;t want to dabble with a VM or some other kinds of web hosting. The Cloudflare free tier seemed to be the best possible fit to host a simple blog, such as this. Now I do not ever need to worry for the website to be down (&lt;a rel=&quot;external&quot; href=&quot;https://www.theverge.com/2022/6/21/23176519/cloudflare-outage-june-2022-discord-shopify-fitbit-peleton&quot;&gt;besides when half of the internet is down&lt;/a&gt;). The DX is there: I push to my git repo and the website is deployed not even a minute after (continuous deployment, amirite fellas?).&lt;/p&gt;
&lt;p&gt;Similarly transferring the domain was a breeze, just had to change the Name Servers on Porkbun and the domain was connected to my page as well.&lt;/p&gt;
&lt;p&gt;Update 2: Changed style again of the blog, making it just slightly brutalistic, migrated from Cloudflare to statichost.eu, in the process of migrating the nameserver as well&lt;/p&gt;
</content>
        
    </entry>
</feed>
