{ "uuid": [ { "value": "0cc877ae-0361-456e-be2c-73c322fe1780" } ], "langcode": [ { "value": "en" } ], "type": [ { "target_id": "daily_email", "target_type": "node_type", "target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7" } ], "revision_timestamp": [ { "value": "2025-05-11T09:00:04+00:00" } ], "revision_uid": [ { "target_type": "user", "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" } ], "revision_log": [], "status": [ { "value": true } ], "uid": [ { "target_type": "user", "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" } ], "title": [ { "value": "One configuration language to rule them all" } ], "created": [ { "value": "2024-11-21T00:00:00+00:00" } ], "changed": [ { "value": "2025-05-11T09:00:04+00:00" } ], "promote": [ { "value": false } ], "sticky": [ { "value": false } ], "default_langcode": [ { "value": true } ], "revision_translation_affected": [ { "value": true } ], "path": [ { "alias": "\/daily\/2024\/11\/21\/one-configuration-language-to-rule-them-all", "langcode": "en" } ], "body": [ { "value": "\n

I started using the Nix package manager in September 2022<\/a> as a replacement for Ansible.<\/p>\n\n

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).<\/p>\n\n

A benefit I didn't initially think of was that now I can write all my configuration files in the Nix language.<\/p>\n\n

I don't need to write YAML, TOML, INI or JSON configuration files. Nix and Home Manager will convert it for me.<\/p>\n\n

For example, see my Git configuration written in Nix<\/a> which is converted and written to .gitignore.<\/p>\n\n

And, if there isn't a built-in module for what I need, there are functions like toJSON<\/code> that will convert Nix code to JSON that I can write to a file.<\/p>\n\n

This is also great if a program changes its configuration file language, which Alacritty did recently.<\/p>\n\n

They changed from YAML to TOML and I didn't need to change anything.<\/p>\n\n

Nix has become my one configuration language to rule them all.<\/p>\n\n ", "format": "full_html", "processed": "\n

I started using the Nix package manager in September 2022<\/a> as a replacement for Ansible.<\/p>\n\n

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).<\/p>\n\n

A benefit I didn't initially think of was that now I can write all my configuration files in the Nix language.<\/p>\n\n

I don't need to write YAML, TOML, INI or JSON configuration files. Nix and Home Manager will convert it for me.<\/p>\n\n

For example, see my Git configuration written in Nix<\/a> which is converted and written to .gitignore.<\/p>\n\n

And, if there isn't a built-in module for what I need, there are functions like toJSON<\/code> that will convert Nix code to JSON that I can write to a file.<\/p>\n\n

This is also great if a program changes its configuration file language, which Alacritty did recently.<\/p>\n\n

They changed from YAML to TOML and I didn't need to change anything.<\/p>\n\n

Nix has become my one configuration language to rule them all.<\/p>\n\n ", "summary": null } ], "feeds_item": [ { "imported": "1970-01-01T00:33:45+00:00", "guid": null, "hash": "afe58adbc88026446b4472112f8ea2a7", "target_type": "feeds_feed", "target_uuid": "90c85284-7ca8-4074-9178-97ff8384fe76" } ] }