Skip to content

Commit

Permalink
update comment we're not using yet
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed Jan 13, 2025
1 parent 8e94533 commit 7eddb83
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/action/common/place_nix_configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,24 @@ impl Action for PlaceNixConfiguration {
.map_err(Self::error)?;
if let Some(ref mut standard_config) = self.create_or_merge_standard_nix_config {
standard_config.try_execute().await.map_err(Self::error)?;
} else {
let mut command = tokio::process::Command::new("/usr/local/bin/determinate-nixd");
command.args(["init"]); //, "--stop-after", "nix-configuration"]);
command.stderr(std::process::Stdio::piped());
command.stdout(std::process::Stdio::piped());
tracing::trace!(command = ?command.as_std(), "Initializing nix.conf");
let output = command
.output()
.await
.map_err(|e| ActionErrorKind::command(&command, e))
.map_err(Self::error)?;
if !output.status.success() {
return Err(Self::error(ActionErrorKind::command_output(
&command, output,
)));
}
}

self.create_or_merge_custom_nix_config
.try_execute()
.await
Expand Down

0 comments on commit 7eddb83

Please sign in to comment.