logoalt Hacker News

nickjj • today at 9:02 PM • 1 reply • view on HN

I have something similar except I don't use AI and I'm using Arch Linux, but it also works with WSL 2 in Windows and supports macOS for the non-GUI related packages / config.

It's nice to have a personal dev box and a travel laptop both using the same set up with tiny differences and then being able to do the same for CLI tools on a work laptop running within macOS.

It's just a single non-committed config file and a committed shell script with no git forks needed to customize it https://github.com/nickjj/dotfriedrice. A bunch of friends are using it and hundreds of others based on GitHub's stats.

Since I backup my home directory I can blow out and create a new system in however long it takes to run through the Arch installer and then invoke 1 command to set everything up. About 10-15 minutes to set up a fresh machine.

I'd consider NixOS if cross OS compatibility wasn't a concern but a shell script and Arch has been great a combo for building a custom set up from the ground up. It's something I've been doing for my dev environment for around 8 years now but only introduced a GUI in the last year once my ~12 year old hardware was compatible with native Linux so I could finally drop Windows with WSL 2.


Replies

jmoggr • today at 10:15 PM

This is not the same. I used to do something like what you describe, but it can't get close to the ease and safety of a declarative config: updating the script and updating the current system are two different steps, only one of which is easy to verify (let alone libc or gpu drivers randomly breaking when i try to install a dependency...).

It is possibly worth it if you don't want to go through the nix learning curve, but after you're over that curve the value prop is very different.