mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
fix names
This commit is contained in:
parent
7d472cee71
commit
ea97e91116
1 changed files with 18 additions and 3 deletions
21
src/main.rs
21
src/main.rs
|
@ -130,14 +130,28 @@ fn main() {
|
||||||
// Partitioning the selected drive
|
// Partitioning the selected drive
|
||||||
format_drive(drive_name);
|
format_drive(drive_name);
|
||||||
|
|
||||||
// placeholder for nix-generate-config
|
// Formatting the partitions
|
||||||
|
let efi_partition = Command::new("mkfs.fat")
|
||||||
|
.arg("-F32")
|
||||||
|
.arg("-n")
|
||||||
|
.arg("EFI")
|
||||||
|
.arg("/dev/sda1")
|
||||||
|
.output()
|
||||||
|
.expect("Failed to partition boot partition as FAT32");
|
||||||
|
|
||||||
|
let root_partition = Command::new("mkfs.btrfs")
|
||||||
|
.arg("-L")
|
||||||
|
.arg("root")
|
||||||
|
.arg("/dev/sda1")
|
||||||
|
.output()
|
||||||
|
.expect("Failed to partition root partition as BTRFS");
|
||||||
|
|
||||||
// Download nix files
|
// Download nix files
|
||||||
grab_flake();
|
grab_flake();
|
||||||
grab_config();
|
grab_config();
|
||||||
grab_home();
|
grab_home();
|
||||||
|
|
||||||
let nixos-gen-config = 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,9 +190,10 @@ fn main() {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
"2" => {
|
"2" => {
|
||||||
let nixos-install = Command::new("nixos-install")
|
let nixos_install = Command::new("nixos-install")
|
||||||
.arg("--flake")
|
.arg("--flake")
|
||||||
.arg("/mnt/etc/nixos#garrus")
|
.arg("/mnt/etc/nixos#garrus")
|
||||||
|
.output()
|
||||||
.expect("Fiale to execute command");
|
.expect("Fiale to execute command");
|
||||||
},
|
},
|
||||||
"3" => {
|
"3" => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue