Skip to content

Instantly share code, notes, and snippets.

@heywoodlh
Created April 14, 2023 20:08
Show Gist options
  • Save heywoodlh/8fd7a327a58edc193aa2ec8c54dd3e5f to your computer and use it in GitHub Desktop.
Save heywoodlh/8fd7a327a58edc193aa2ec8c54dd3e5f to your computer and use it in GitHub Desktop.
Example of Nix's option expansion
{
programs.zsh.enable = true;
programs.zsh.enableAutosuggestions = true;
programs.zsh.envExtra = ''
export MYVAR="true"
export MYVAR2="false"
'';
}
{
programs.zsh = {
enable = true;
enableAutosuggestions = true;
envExtra = ''
export MYVAR="true"
export MYVAR2="false"
'';
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment