mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
clear out old code
This commit is contained in:
parent
5fe1bc8b44
commit
d886565041
1 changed files with 1 additions and 21 deletions
22
src/main.rs
22
src/main.rs
|
@ -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");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue