diff --git a/src/action/base/create_or_merge_nix_config.rs b/src/action/base/create_or_merge_nix_config.rs index 28cbc5939..4a0239cf8 100644 --- a/src/action/base/create_or_merge_nix_config.rs +++ b/src/action/base/create_or_merge_nix_config.rs @@ -409,15 +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);