Compare commits

..

1 commit

Author SHA1 Message Date
Aaron Honeycutt
5ca4da94eb add boot permission fix 2025-04-19 17:35:44 -06:00

View file

@ -233,7 +233,7 @@ fn main() {
.arg("-i") .arg("-i")
.arg(r#"/fsType = "vfat"/ { .arg(r#"/fsType = "vfat"/ {
n n
s/\(options = \[.*\)\]/\1"umask=0077 "]/ s/\(options = \[.*\)\]/\1"umask=0077"]/
}"#) }"#)
.arg("/mnt/etc/nixos/hardware-configuration.nix") .arg("/mnt/etc/nixos/hardware-configuration.nix")
.output() .output()
@ -246,7 +246,8 @@ fn main() {
println!("---------------"); println!("---------------");
println!(""); println!("");
println!("1. Lemur Pro 13 (Garrus)"); println!("1. Lemur Pro 13 (Garrus)");
println!("2. Generic"); println!("2. Device 2");
println!("3. Quit");
println!(""); println!("");
println!("Enter your host for installation:"); println!("Enter your host for installation:");
@ -291,20 +292,12 @@ fn main() {
break break
} }
"2" => { "2" => {
let mut nixos_install = Command::new("nixos-install") println!("Nix the world!");
.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;
}, },
"3" => {
println!("Goodbye!");
break;
},
_ => println!("Invalid choice, try again."), _ => println!("Invalid choice, try again."),
} }
} }