Skip to content

Commit

Permalink
Nix config: add extra newlines after the initial comment (#719)
Browse files Browse the repository at this point in the history
* Nix config: add extra newlines after the initial comment

Otherwise the extra-config option will get swallowed.

Closes #717

* Push individual strs
  • Loading branch information
grahamc authored Nov 14, 2023
1 parent 01a3447 commit 0c01adc
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/action/base/create_or_merge_nix_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,13 +409,10 @@ impl Action for CreateOrMergeNixConfig {
new_config.push('\n');
}

new_config.push_str(
&[
"# Generated by https://github.com/DeterminateSystems/nix-installer.",
"# See `/nix/nix-installer --version` for the version details.",
]
.join("\n"),
);
new_config
.push_str("# Generated by https://github.com/DeterminateSystems/nix-installer.\n");
new_config.push_str("# See `/nix/nix-installer --version` for the version details.\n");
new_config.push_str("\n");

for (name, value) in merged_nix_config.settings() {
new_config.push_str(name);
Expand Down

0 comments on commit 0c01adc

Please sign in to comment.