diff --git a/src/main.rs b/src/main.rs index 65084d7..d165520 100644 --- a/src/main.rs +++ b/src/main.rs @@ -137,7 +137,7 @@ fn main() { grab_config(); 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("--root") .arg("/mnt") @@ -176,7 +176,10 @@ fn main() { break } "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" => { println!("Goodbye!");