NixOS Declarative Approach for Operating System Management

Arch Linux is my favourite distribution for long time. I can get the benefit of bleeding-edge and highly configurable system, yet still manageable with its lovely package management like pacman, AUR and additionally brew. I also use ansible / chef to manage the workstations / VMs for the sake of immutability. But, managing the playbooks takes time even for doing simple things. In distrowatch, there are page hit ranks and I already familiar with most of them in the list and I found NixOS there, which I haven’t used. I interested with the declarative configuration approach that NixOS offer to manage the system. Go straight to the documentation rightaway, and try it in VM. Aaaand.. I got overwhelmed at first with the nix language. 30 minutes learning the configurations, finally I can make the configuration usable and enjoying it more than Arch! The offered approach allows us to manage the workstations from zero just by utilizing the nix configurations, so we technically having an immutable system! ...

December 19, 2024 · 4 min · 829 words · Me

Bulding Docker Image with Cloud Builder

Docker BuildKit has been there since couple years back and its become default builder to replace the legacy builder since Docker Desktop 23.0. I really like this BuildKit since its offers some helpful features. The one that I mostly feel help was the build cache which can possibly save some build time and also the data used to download the dependencies of your image. Recently, I just got to know about Docker Build Cloud which allows us to build our image with cloud builder. I got to know when I try to built some images and it takes long time to complete and decided to read the docs and found out there is Docker Build Cloud section. Docker Build Cloud is part of the buildx and available for personal use with usage up to 50 build minutes every month. With this, your build will be offloaded to the cloud instance as well as the cache, so no need to worry when your Internet is problematic or your machine is not strong enough to build the image. ...

September 23, 2024 · 3 min · 567 words · Me

Ressurection of My Homelab

1.5 years living in Singapore makes me put down my homelab. Despite I already made the environment accessible as possible, apparently its still has lot of issues due to Indonesia ISP unstability and also electricity issues. Since now I currently in Indonesia, I was decided to wake them up again! The Born of the Undead I put my homelab in my working room, and since my house was empty and no one take care of it, then yaaa! Its fully covered by dusts. Unfortunately, several devices completely dead. I tried to turn on everything, zonk! I need to start from scratch again. Since I don’t want to spend too much time building it at once, I started to pick up one of the machine that I often used for hypervisor. My DeskMini X300 is still solid AsRock! I was using plain LibVirt in the past and manage everyting using terraform-libvirt which allows me to manage everything through pipeline. But, this time I try to do differently. ...

September 20, 2024 · 5 min · 885 words · Me

Build Kubernetes QEMU/KVM Image with Packer

Packer is a tools to automate creation of multiple machine images build by Hashicorp. Its support multiple builders such as AWS EC2, DigitalOcean, LXD, VMWare, QEMU, etc. In this post, I will share how to create a packer template to build kubernetes image for QEMU/KVM on top of Ubuntu minimal cloud image based on my homelab setup. Prerequisites packer cloud-localds (from cloud-image-utils in ubuntu) QEMU/KVM enabled host Step by Step Ensure you have QEMU/KVM enabled host, and also packer installed in your machine. If you use Linux, you could use following commands: ...

March 16, 2020 · 3 min · 455 words · Me

First Experience as a Tech Lead

Last year, I got offered and trust to be a lead in my team. To be honest, that was my first time I become a lead in my career. First thing that come to my mind was, If I become a lead, then I will have N peoples that will be my responsibility, I will be one of the factor of their good and bad That was not easy choice, but thanks to my supportive lead and also supportive colleague. I become a lead for about six months and that was a great experiences! ...

February 23, 2019 · 3 min · 597 words · Me