mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
add code for nixos-install (untested)
This commit is contained in:
parent
df9d271f42
commit
4121a00eea
1 changed files with 5 additions and 2 deletions
|
@ -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!");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue