diff --git a/src/main.rs b/src/main.rs index e7cd8b2..4e8c056 100644 --- a/src/main.rs +++ b/src/main.rs @@ -193,19 +193,6 @@ fn main() { ) .expect("Failed to mount root partition"); - // let _mount_root = Command::new("mount") - // // Replace with non static variable - // .arg("/dev/nvme1n1p2") - // .arg("/mnt") - // .output() - // .expect("Failed to mount root"); - - let _delete_boot_directory = Command::new("rm") - .arg("-r") - .arg("/mnt/boot") - .output() - .expect("Failed to delete boot directory"); - // Creates the boot directory in /mnt/boot let _create_boot_directory = Command::new("mkdir") .arg("-p") @@ -226,13 +213,6 @@ fn main() { ) .expect("Failed to mount boot partition"); - // let _mount_boot = Command::new("mount") - // // Replace with non static variable - // .arg("/dev/nvme1n1p1") - // .arg("/mnt/boot") - // .output() - // .expect("Failed to mount boot"); - let _nixos_gen_config = Command::new("nixos-generate-config") .arg("--root") .arg("/mnt") @@ -240,7 +220,7 @@ fn main() { .expect("Failed to execute command"); // Copies the nix files to /mnt/etc/nixos/ - let nix_move = Command::new("mv") + let _nix_move = Command::new("mv") .args(["-f", "flake.nix", "configuration.nix", "home.nix", "/mnt/etc/nixos"]) .output() .expect("Failed to move nix files over");