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 {