TIL

Fixing Nix When Upgrading To macOS Sequoia

I upgraded to macOS Sequoia a few weeks ago. I had a feeling this update wasn't going to be trivial with my Nix setup, but after trying to upgrade to a newer package version on unstable, I got a message that seemed to imply I needed to upgrade the OS, so I went for it. Also, I was at least...

Logs

2024-04-19

I did a refactor of my nix config following a pattern I learned from reading Davis' setup. My two main uses right now for Nix/home-manager are to install and configure programs. Some of these programs have nix modules that allow for the configuration to be written in Nix. Others don't, but you can...

TIL

Using Nix to Install `llm` with Plugins

I use Simon's llm to quickly run LLM prompts. This package is easily installed with brew or pip, so if you want to use it, I recommend those approaches. The following approach is not for the faint of heart and assumes a bit of familiarity with Nix and home-manager. We are going to install the llm...

TIL

Nix Channels and the Linux Builder

I was following this guide to setup nix-darwin on a new Mac when I ran into an issue following the section about cross-compiling Linux binaries. I put this issue to the side when I first encountered it because I was trying to setup dependency management for my new system and this problem didn't...

Logs

2024-02-05

After playing around with home-manager for a bit, I realized what I really wanted was to have nix-darwin manage my system and use my home-manager config as a module. It took a bit of trial and error and searching to figure out how to make this work, but I did eventually find a way. With nix-darwin,...

Logs

2024-02-04

I pivoted to using home-manager using the standalone installation. It seems to provide a reasonable starting point and a found a fair bit of prior art when searching Github, so my hope was there would be good examples to model off of. It took me a frustrating time to realize after running...

Logs

2024-02-03

Today, was a first day setting up a new computer. I spent most of the time installing applications and building up my setting with declarative configurations. This site has been helpful. I also started this walkthrough for setting up nix on a Mac.

TIL

Zero to Nix

I started working through the Zero to Nix guide. This is a light introduction that touch on a few of the command line tools that come with nix and how they can be used to build local and remote projects and enter developer environments. While many of the examples are high level concept you'd...

Logs

2023-07-09

I've been playing around more with nix lately. I like what I've seen from it so far: declare dependencies and get an isolated shell with those dependencies. If distributed, the environment can be trivially recreated on another machine. So far, it's been a struggle to get a working Python...

Logs

2023-07-04

I've been working through a series on nix-flakes. It's well written and shows some interesting applications of the tool set. I'm still trying to wrap my head around exactly where nix could fit in in my development lifecycle. It seems like it wraps up builds and package management into one. Sort of...