mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
remove quit as it is after the formatting so pointless
This commit is contained in:
parent
0cd5007ae7
commit
c070fcac90
1 changed files with 16 additions and 9 deletions
19
src/main.rs
19
src/main.rs
|
@ -246,8 +246,7 @@ fn main() {
|
|||
println!("---------------");
|
||||
println!("");
|
||||
println!("1. Lemur Pro 13 (Garrus)");
|
||||
println!("2. Device 2");
|
||||
println!("3. Quit");
|
||||
println!("2. Generic");
|
||||
println!("");
|
||||
|
||||
println!("Enter your host for installation:");
|
||||
|
@ -292,10 +291,18 @@ fn main() {
|
|||
break
|
||||
}
|
||||
"2" => {
|
||||
println!("Nix the world!");
|
||||
},
|
||||
"3" => {
|
||||
println!("Goodbye!");
|
||||
let mut nixos_install = Command::new("nixos-install")
|
||||
.arg("--flake")
|
||||
.arg("/mnt/etc/nixos#nixos")
|
||||
.arg("--no-root-passwd")
|
||||
.stdout(Stdio::inherit())
|
||||
.stderr(Stdio::inherit())
|
||||
.spawn()
|
||||
.unwrap();
|
||||
|
||||
let install_status = nixos_install.wait();
|
||||
println!("Exited with status {:?}", install_status);
|
||||
|
||||
break;
|
||||
},
|
||||
_ => println!("Invalid choice, try again."),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue