From 4121a00eea9eb450a7da6d3836581c6bdc021cd9 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Wed, 9 Apr 2025 20:53:19 -0600 Subject: [PATCH] add code for nixos-install (untested) --- src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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!");