mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 02:54:03 -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
25
src/main.rs
25
src/main.rs
|
@ -233,12 +233,12 @@ fn main() {
|
|||
.arg("-i")
|
||||
.arg(r#"/fsType = "vfat"/ {
|
||||
n
|
||||
s/\(options = \[.*\)\]/\1"umask=0077 "]/
|
||||
s/\(options = \[.*\)\]/\1"umask=0077 "]/
|
||||
}"#)
|
||||
.arg("/mnt/etc/nixos/hardware-configuration.nix")
|
||||
.output()
|
||||
.expect("Failed to apply boot fix");
|
||||
|
||||
|
||||
// Host selection
|
||||
loop {
|
||||
println!("");
|
||||
|
@ -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,12 +291,20 @@ 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