80 lines
3.6 KiB
YAML
80 lines
3.6 KiB
YAML
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: |
|
|
<p>I started using the Nix package manager <a href="https://github.com/opdavies/dotfiles.nix/commit/af1d8d37">in September 2022</a> as a replacement for Ansible.</p>
|
|
|
|
<p>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>
|
|
|
|
<p>A benefit I didn't initially think of was that now I can write all my configuration files in the Nix language.</p>
|
|
|
|
<p>I don't need to write YAML, TOML, INI or JSON configuration files. Nix and Home Manager will convert it for me.</p>
|
|
|
|
<p>For example, see <a href="https://github.com/opdavies/dotfiles/blob/172b7c9ca61d2dd6ffdc967af9102b1ca24edd81/nix/modules/home-manager/git.nix#L25">my Git configuration written in Nix</a> which is converted and written to .gitignore.</p>
|
|
|
|
<p>And, if there isn't a built-in module for what I need, there are functions like <code>toJSON</code> that will convert Nix code to JSON that I can write to a file.</p>
|
|
|
|
<p>This is also great if a program changes its configuration file language, which Alacritty did recently.</p>
|
|
|
|
<p>They changed from YAML to TOML and I didn't need to change anything.</p>
|
|
|
|
<p>Nix has become my one configuration language to rule them all.</p>
|
|
|
|
|
|
format: full_html
|
|
processed: |
|
|
<p>I started using the Nix package manager <a href="https://github.com/opdavies/dotfiles.nix/commit/af1d8d37">in September 2022</a> as a replacement for Ansible.</p>
|
|
|
|
<p>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>
|
|
|
|
<p>A benefit I didn't initially think of was that now I can write all my configuration files in the Nix language.</p>
|
|
|
|
<p>I don't need to write YAML, TOML, INI or JSON configuration files. Nix and Home Manager will convert it for me.</p>
|
|
|
|
<p>For example, see <a href="https://github.com/opdavies/dotfiles/blob/172b7c9ca61d2dd6ffdc967af9102b1ca24edd81/nix/modules/home-manager/git.nix#L25">my Git configuration written in Nix</a> which is converted and written to .gitignore.</p>
|
|
|
|
<p>And, if there isn't a built-in module for what I need, there are functions like <code>toJSON</code> that will convert Nix code to JSON that I can write to a file.</p>
|
|
|
|
<p>This is also great if a program changes its configuration file language, which Alacritty did recently.</p>
|
|
|
|
<p>They changed from YAML to TOML and I didn't need to change anything.</p>
|
|
|
|
<p>Nix has become my one configuration language to rule them all.</p>
|
|
|
|
|
|
summary: null
|
|
field_daily_email_cta: { }
|