Bootstrapping a Mac with Nix March 25, 2024 Posted in nix , macos , apple , nix-darwin , brew , homebrew With nix-darwin and home-manager it is possible to manage almost all of a mac configuration declaratively. So when I got my new Macbook I was pretty sure this is the way to go. Unfortunately, the bootstrap is a bit involved. These are my notes from the process, which hopefully serves as a…
Experiments in Portable computing January 18, 2024 Posted in cyberdeck , computing , iphone I use my phone a lot. Its the best for consuming media on the go sort of things, like reading, watching videos etc. Always on, always connected, ready to whip out in a moments notice! I also hate using my phone for anything else: for a long time the reasons have eluded me, but this time I have a lead – I…
Mount a Zvol under linux January 12, 2024 Posted in zfs , zvol , mount , kpartx , linux , nixos Zvol are volumes backed by a zfs pool. They are quite popular as vm disk images. Sometimes you just want to examine them in the host; here is how to mount them. When the pool is imported, they show up under /dev/zvol/<path to zvol dataset> . At this point they are just raw drives, and kernel knows…
Easy NixOS remote deployments November 14, 2023 Posted in nixos , nix , flakes There exists a mutitude of tooling to remotely manage nixos machines, each with its own features and compromises. In my experience, for a simple deployment of few hosts nixos-rebuild --target-host is pretty powerful. This is the workflow I’ve been using to manage my personal systems: I bootstrap the machines manually by…
Setting up a private package repo for FreeBSD April 7, 2020 Posted in freebsd , pkgng Lately the EU mirror for FreeBSD packages( http://pkg0.bme.freebsd.org ) has been really slow for me. My best guess is the mirror is being overloaded, it could be because of my ISP peering weirdly too. I already have a Poudriere setup running on a beefy server. How hard it would be building all the packages that…