Compare commits

...

2 commits

Author SHA1 Message Date
Aaron Honeycutt
c070fcac90 remove quit as it is after the formatting so pointless 2025-04-19 22:38:12 -06:00
Aaron Honeycutt
0cd5007ae7 add boot permission fix 2025-04-19 22:12:53 -06:00

View file

@ -228,6 +228,17 @@ fn main() {
.output()
.expect("Failed to move nix files over");
// Fixes a security issue with boot
let _boot_fix = Command::new("sed")
.arg("-i")
.arg(r#"/fsType = "vfat"/ {
n
s/\(options = \[.*\)\]/\1"umask=0077 "]/
}"#)
.arg("/mnt/etc/nixos/hardware-configuration.nix")
.output()
.expect("Failed to apply boot fix");
// Host selection
loop {
println!("");
@ -235,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:");
@ -281,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."),