add code for nixos-install (untested)

This commit is contained in:
Aaron Honeycutt 2025-04-09 20:53:19 -06:00
parent df9d271f42
commit 4121a00eea

View file

@ -137,7 +137,7 @@ fn main() {
grab_config(); grab_config();
grab_home(); grab_home();
let nixos_gen_con = Command::new("nixos-generate-config") let nixos-gen-config = Command::new("nixos-generate-config")
.arg("no-file-systems") .arg("no-file-systems")
.arg("--root") .arg("--root")
.arg("/mnt") .arg("/mnt")
@ -176,7 +176,10 @@ fn main() {
break break
} }
"2" => { "2" => {
println!("2 + 2 = {}", 2 + 2); let nixos-install = Command::new("nixos-install")
.arg("--flake")
.arg("/mnt/etc/nixos#garrus")
.expect("Fiale to execute command");
}, },
"3" => { "3" => {
println!("Goodbye!"); println!("Goodbye!");