mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 02:54:03 -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
|
||||
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
|
||||
grab_flake();
|
||||
grab_config();
|
||||
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("--root")
|
||||
.arg("/mnt")
|
||||
|
@ -176,9 +190,10 @@ fn main() {
|
|||
break
|
||||
}
|
||||
"2" => {
|
||||
let nixos-install = Command::new("nixos-install")
|
||||
let nixos_install = Command::new("nixos-install")
|
||||
.arg("--flake")
|
||||
.arg("/mnt/etc/nixos#garrus")
|
||||
.output()
|
||||
.expect("Fiale to execute command");
|
||||
},
|
||||
"3" => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue