clear out old code

This commit is contained in:
Aaron Honeycutt 2025-04-12 13:57:56 -06:00
parent 5fe1bc8b44
commit d886565041

View file

@ -193,19 +193,6 @@ fn main() {
) )
.expect("Failed to mount root partition"); .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 // Creates the boot directory in /mnt/boot
let _create_boot_directory = Command::new("mkdir") let _create_boot_directory = Command::new("mkdir")
.arg("-p") .arg("-p")
@ -226,13 +213,6 @@ fn main() {
) )
.expect("Failed to mount boot partition"); .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") let _nixos_gen_config = Command::new("nixos-generate-config")
.arg("--root") .arg("--root")
.arg("/mnt") .arg("/mnt")
@ -240,7 +220,7 @@ fn main() {
.expect("Failed to execute command"); .expect("Failed to execute command");
// Copies the nix files to /mnt/etc/nixos/ // 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"]) .args(["-f", "flake.nix", "configuration.nix", "home.nix", "/mnt/etc/nixos"])
.output() .output()
.expect("Failed to move nix files over"); .expect("Failed to move nix files over");