diff --git a/src/action/base/create_or_merge_nix_config.rs b/src/action/base/create_or_merge_nix_config.rs index 250ac0b..1f69ddb 100644 --- a/src/action/base/create_or_merge_nix_config.rs +++ b/src/action/base/create_or_merge_nix_config.rs @@ -409,10 +409,13 @@ impl Action for CreateOrMergeNixConfig { new_config.push('\n'); } - new_config.push_str(&format!( - "# Generated by https://github.com/DeterminateSystems/nix-installer, version {version}.\n", - version = env!("CARGO_PKG_VERSION"), - )); + new_config.push_str( + &[ + "# Generated by https://github.com/DeterminateSystems/nix-installer.", + "# See `/nix/nix-installer --version` for the version details.", + ] + .join("\n"), + ); for (name, value) in merged_nix_config.settings() { new_config.push_str(name);