add boot permission fix

This commit is contained in:
Aaron Honeycutt 2025-04-19 17:25:52 -06:00
parent 4dccfd16b1
commit 0cd5007ae7

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!("");