From 8b16d6c481bcb95b59ae05247692d07dea84f78c Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Wed, 9 Apr 2025 20:31:54 -0600 Subject: [PATCH] clean up incorrect code --- src/main.rs | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/main.rs b/src/main.rs index f2beb7d..284b544 100644 --- a/src/main.rs +++ b/src/main.rs @@ -120,15 +120,6 @@ fn grab_home() { } } -fn nix_gen() { - let output = Command::new("nixos-generate-config") - .arg("no-file-systems") - .arg("--root") - .arg("/mnt") - .output() - .expect("Failed to execute command"); -} - fn main() { println!("--------------------------------------"); println!("| Welcome to the Nyxi Installer 2.0! |"); @@ -160,8 +151,6 @@ fn main() { let drive_name = drive_name.trim(); - // let deposit_number: f64 = deposit_amount.parse().expect("Input not an integer"); - // Partitioning the selected drive format_drive(drive_name); @@ -172,7 +161,12 @@ fn main() { grab_config(); grab_home(); - nix_gen(); + let output = Command::new("nixos-generate-config") + .arg("no-file-systems") + .arg("--root") + .arg("/mnt") + .output() + .expect("Failed to execute command"); // Host selection loop {