I started using the Nix package manager in September 2022 as a replacement for Ansible.
Since then, I've switched to daily-driving NixOS as my main operating system and Home Manager to manage my dotfiles (configuration files for managing application settings, like Neovim, tmux and Alacritty).
A benefit I didn't initially think of was that now I can write all my configuration files in the Nix language.
I don't need to write YAML, TOML, INI or JSON configuration files. Nix and Home Manager will convert it for me.
And, if there isn't a built-in module for what I need, there are functions like toJSON that will convert Nix code to JSON that I can write to a file.
This is also great if a program changes its configuration file language, which Alacritty did recently.
They changed from YAML to TOML and I didn't need to change anything.
Nix has become my one configuration language to rule them all.
- Oliver
Was this interesting?
About me
I'm an Acquia-certified Drupal Triple Expert with 18
years of experience, an open-source software maintainer and Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.