diff --git a/crates/nix_rs/src/command.rs b/crates/nix_rs/src/command.rs index 50b8e7b5..04a14f6e 100644 --- a/crates/nix_rs/src/command.rs +++ b/crates/nix_rs/src/command.rs @@ -43,10 +43,6 @@ pub struct NixCmd { /// Consider all previously downloaded files out-of-date. #[cfg_attr(feature = "clap", arg(long))] pub refresh: bool, - - /// The command to run instead of `nix`. - #[cfg_attr(feature = "clap", arg(long))] - pub command: Option, } impl Default for NixCmd { @@ -58,7 +54,6 @@ impl Default for NixCmd { extra_experimental_features: vec![], extra_access_tokens: vec![], refresh: false, - command: None, } } } @@ -113,7 +108,7 @@ impl NixCmd { /// Return a [Command] for this [NixCmd] configuration pub fn command(&self) -> Command { - let mut cmd = Command::new(self.command.as_deref().unwrap_or("nix")); + let mut cmd = Command::new("nix"); cmd.kill_on_drop(true); cmd.args(self.args()); cmd