← b a c k
         .----------------------------------.
        /  .------------------------------.  \
        |  |                              |  |
        |  |                              |  |
        |  |                              |  |
        |  |                              |  |
        |  |                              |  |
        |  |                              |  |
        |  |______________________________|  |
        |               .-----.              |
        \              (dimitri)             /
         '----------------------------------'
         /                                  \
        |   [] [] [] [] [] [] [] [] [] []    |
        |                                    |
        |  .------------------------------.  |
        |  |                              |  |
        |  |                              |  |
        |  |                              |  |
        |  '------------------------------'  |
        |                                    |
         ~----------------------------------~

[history] donor = Jakob Schlötter donation_date = 2026.11.18 trivia = When Jakob worked as Creative Coder at LUSTlab, he had the brilliant idea of getting his laptop stolen out of his room. Dimitri Nieuwenhuizen, co-founder of LUST and LUSTlab had an old Macbook Pro, which he generously gave to Jakob to bridge the laptopless time. In 2023, Former LUST employee and co-founder of RNDR Boyd Rotgans found the laptop in the storage space when cleaning up and handed it over again to Jakob. Dimitri, the laptop, received his name in honourable remembrance to Dimitri, who passed away in October 2017.

[orphan] name = dimitri os = NixOS architecture = x84_64 model = Macbook Pro 2011 serial_number = t.b.d. active = true

installation

dimitri is currently running MX Linux, which shall likely be replaced with NixOS.

2026-12-02

Today was finally the day to replace MX Linux with NixOS. No shade on MX Linux, we all love it. Nevertheless, NixOS is what we chose for as a base system for now.

Step 1 - Create a bootable NixOS USB stick

The Macbook does not like multiboot usb sticks like Ventoy, so a usb stick needs to be prepared like this:

$ wget https://channels.nixos.org/nixos-26.11/latest-nixos-graphical-x86_64-linux.iso
$ echo "DANGER: be careful with the following command (<ctrl-c> to cancel <enter> to continue"; read DANGER
$ echo "DANGER: do not blindly copy it (<ctrl-c> to cancel <enter> to continue"; read DANGER
$ echo "DANGER: 'dd' is also called 'disk destroyer' maybe you want to use 'balena etcher' instead? (<ctrl-c> to cancel <enter> to continue"; read DANGER
$ sudo dd if=./latest-nixos-graphical-x86_64-linux.iso of=/dev/sda

Step 2 - install NixOS

Then, NixOS was installed. The beauty about NixOS is, that the whole configuration is in a single file. Current config is pretty minimal, it looks like that:

$ cat /etc/nixos/configuration.nix
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).

{ config, pkgs, ... }:

{
  imports =
    [ # Include the results of the hardware scan.
      ./hardware-configuration.nix
    ];

  # Use the systemd-boot EFI boot loader.
  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = true;

  networking.hostName = "nixos"; # Define your hostname.
  # networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant.

  # Configure network proxy if necessary
  # networking.proxy.default = "http://user:password@proxy:port/";
  # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";

  # Enable networking
  networking.networkmanager.enable = true;

  # Set your time zone.
  time.timeZone = "Europe/Amsterdam";

  # Select internationalisation properties.
  i18n.defaultLocale = "en_US.UTF-8";

  i18n.extraLocaleSettings = {
    LC_ADDRESS = "nl_NL.UTF-8";
    LC_IDENTIFICATION = "nl_NL.UTF-8";
    LC_MEASUREMENT = "nl_NL.UTF-8";
    LC_MONETARY = "nl_NL.UTF-8";
    LC_NAME = "nl_NL.UTF-8";
    LC_NUMERIC = "nl_NL.UTF-8";
    LC_PAPER = "nl_NL.UTF-8";
    LC_TELEPHONE = "nl_NL.UTF-8";
    LC_TIME = "nl_NL.UTF-8";
  };

  # Configure keymap in X11
  services.xserver.xkb = {
    layout = "us";
    variant = "euro";
  };

  # Define a user account. Don't forget to set a password with ‘passwd’.
  users.users."kushim" = {
    isNormalUser = true;
    description = "kushim";
    extraGroups = [ "networkmanager" "wheel" ];
    packages = with pkgs; [];
  };

  # Allow unfree packages
  nixpkgs.config.allowUnfree = true;

  # List packages installed in system profile.
  # You can use https://search.nixos.org/ to find more packages (and options).
  environment.systemPackages = with pkgs; [
    vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
    autossh
    tailscale
  ];

  # Some programs need SUID wrappers, can be configured further or are
  # started in user sessions.
  # programs.mtr.enable = true;
  programs.gnupg.agent = {
    enable = true;
    enableSSHSupport = true;
  };

  # List services that you want to enable:

  # Enable the OpenSSH daemon.
  services.openssh = {
    enable = true;
    openFirewall = true;
    settings = {
      PasswordAuthentication = false;
      KbdInteractiveAuthentication = false;
      PermitRootLogin = "no";
      AllowUsers = [ <SECRET> ];
      MaxAuthTries = 3;
      PerSourcePenalties = "crash:3600s authfail:3600s max:86400s";
    }; 
  };

  services.tailscale = {
    enable = true;
    openFirewall = true;
  };

  system.stateVersion = "26.05"; # Did you read the comment?

}

When trying to show the configuration, I noticed that my laptop wasn't able to connect to dimitri, because I apparently tried 3 times with the wrong credentials (See PerSourcePenalties above). So, I added my own IP ot be excempt from the penalties.

Changes from above:

  [...]
  services.openssh = {
    [...]
    setttings = {
      [...]
      PerSourcePenaltyExemptList = "127.0.0.1"
    };
  };

FYI, 127.0.0.1 is a placeholder for the IP that my laptop has in the tailnet network. 127.0.0.1 is always the own computer.

2026-12-03

Today, I filled in the diary from yesterday and made sure tailscale is starting on boot and properly connected.

I almost also installed netbird as an alternative mesh network, but then I decided to not do that and instead focus on the essentials.

The first test to host something on dimitri:

$ nix-shell -p python3
$ echo "it works! - dimitri" > index.html
$ python -m http.server 8080

Then, on the server laika we add the reverse proxy to our nginx configuration:

$ cat portal/docker-compose.yml | grep dimitri
        dimitri.liberate.technology -> http://dimitri:8080,

Then we can open a browser on https://dimitri.liberate.technology and shoudl see it works! - dimitri. Sooo, that worked!

I stopped the server immediately though, because there was a lot of trash traffic coming in.

backlight

We don't want to waste energy, so here a little script to change the backlight brightness. This script has to be still properly packed and started.

#!/usr/bin/env bash

echo "toggle backlight brightness from 0-100"

re='^[0-9]+$'
if [[ "$1" -gt 100 ]] || [[ "$1" -lt 0 ]] || [[ -z "$1" ]] || ! [[ $1 =~ $re ]];
then
  echo "nope, try again with a value between 0-100"
  echo "e.g.:"
  echo "$0 42"
  exit
fi

echo "$1" | tee /sys/class/backlight/nv_backlight/brightness

automatic upgrade

We can make it upgrade itself by adding this to the configuration:

  system.autoUpgrade = {
    enable = true;
    dates = "02:00";
    randomizedDelaySec = "45min";
    allowReboot = true;  # Set to true if you want automatic reboots
  };

apologies

anyways, I apologize for this script heavy and super duper technical blog :-0, however, it's too late to change everything in to wonderful prose. I will simply say, "I wish you a wonderful time". And then slowly pack my things up and prepare mentally for another day.

Today was good though!