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:
parent
01a3447b83
commit
0c01adc852
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue