Nix config: add extra newlines after the initial comment (#719)

* Nix config: add extra newlines after the initial comment

Otherwise the extra-config option will get swallowed.

Closes #717

* Push individual strs
This commit is contained in:
Graham Christensen 2023-11-14 11:27:11 -05:00 committed by GitHub
parent 01a3447b83
commit 0c01adc852
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);