Skip to content

Commit

Permalink
nix_rs: Fix regression while fetching version and config
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaraj-bh committed Dec 15, 2024
1 parent d25eab3 commit 99b9ee9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/nix_rs/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl Default for NixCmd {
extra_experimental_features: vec![],
extra_access_tokens: vec![],
refresh: false,
accept_flake_config: true,
accept_flake_config: false,
}
}
}
Expand Down Expand Up @@ -101,6 +101,7 @@ impl NixCmd {

/// Enable flakes on this [NixCmd] configuration
pub fn with_flakes(&mut self) {
self.accept_flake_config = true;
self.extra_experimental_features
.append(vec!["nix-command".to_string(), "flakes".to_string()].as_mut());
}
Expand Down

0 comments on commit 99b9ee9

Please sign in to comment.