nix fmt + rustfmt sweep
This commit is contained in:
parent
0cf120e9e9
commit
411cf86632
16 changed files with 171 additions and 133 deletions
|
|
@ -43,11 +43,7 @@ fn token_path(name: &str) -> PathBuf {
|
|||
/// Probe whether `hive-forge` exists as a nixos-container. Cheap —
|
||||
/// `nixos-container list` is just a directory scan in /etc.
|
||||
pub async fn is_present() -> bool {
|
||||
let Ok(out) = Command::new("nixos-container")
|
||||
.arg("list")
|
||||
.output()
|
||||
.await
|
||||
else {
|
||||
let Ok(out) = Command::new("nixos-container").arg("list").output().await else {
|
||||
return false;
|
||||
};
|
||||
if !out.status.success() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue