mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
clean up incorrect code
This commit is contained in:
parent
6efe2ba259
commit
8b16d6c481
1 changed files with 6 additions and 12 deletions
18
src/main.rs
18
src/main.rs
|
@ -120,15 +120,6 @@ fn grab_home() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn nix_gen() {
|
|
||||||
let output = Command::new("nixos-generate-config")
|
|
||||||
.arg("no-file-systems")
|
|
||||||
.arg("--root")
|
|
||||||
.arg("/mnt")
|
|
||||||
.output()
|
|
||||||
.expect("Failed to execute command");
|
|
||||||
}
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("--------------------------------------");
|
println!("--------------------------------------");
|
||||||
println!("| Welcome to the Nyxi Installer 2.0! |");
|
println!("| Welcome to the Nyxi Installer 2.0! |");
|
||||||
|
@ -160,8 +151,6 @@ fn main() {
|
||||||
|
|
||||||
let drive_name = drive_name.trim();
|
let drive_name = drive_name.trim();
|
||||||
|
|
||||||
// let deposit_number: f64 = deposit_amount.parse().expect("Input not an integer");
|
|
||||||
|
|
||||||
// Partitioning the selected drive
|
// Partitioning the selected drive
|
||||||
format_drive(drive_name);
|
format_drive(drive_name);
|
||||||
|
|
||||||
|
@ -172,7 +161,12 @@ fn main() {
|
||||||
grab_config();
|
grab_config();
|
||||||
grab_home();
|
grab_home();
|
||||||
|
|
||||||
nix_gen();
|
let output = Command::new("nixos-generate-config")
|
||||||
|
.arg("no-file-systems")
|
||||||
|
.arg("--root")
|
||||||
|
.arg("/mnt")
|
||||||
|
.output()
|
||||||
|
.expect("Failed to execute command");
|
||||||
|
|
||||||
// Host selection
|
// Host selection
|
||||||
loop {
|
loop {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue