This commit is contained in:
Cole Helbling 2024-05-07 11:18:56 -07:00
parent a0a35d7ff8
commit 8b1b1c9302

View file

@ -149,10 +149,10 @@ async fn main_cli() -> Result<()> {
create_dir_all(parent).with_context(|| "Creating parent directories of nix.conf")?; create_dir_all(parent).with_context(|| "Creating parent directories of nix.conf")?;
} }
let mut nix_conf = OpenOptions::new() let mut nix_conf = std::fs::OpenOptions::new()
.create(true) .create(true)
.append(true) .append(true)
.open(args.nix_conf) .open(&args.nix_conf)
.with_context(|| "Creating nix.conf")?; .with_context(|| "Creating nix.conf")?;
let store = Arc::new(NixStore::connect()?); let store = Arc::new(NixStore::connect()?);