fix names

This commit is contained in:
Aaron Honeycutt 2025-04-09 21:08:33 -06:00
parent 7d472cee71
commit ea97e91116

View file

@ -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" => {