clean up incorrect code

This commit is contained in:
Aaron Honeycutt 2025-04-09 20:31:54 -06:00
parent 6efe2ba259
commit 8b16d6c481

View file

@ -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 {