mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
Edit install.sh
This commit is contained in:
parent
48457d25f1
commit
a6574091a8
1 changed files with 3 additions and 1 deletions
|
@ -26,7 +26,6 @@ sudo sed -i "s#/dev/sda#$driveName#g" /tmp/disko-config.nix
|
|||
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy,format,mount /tmp/disko-config.nix
|
||||
|
||||
## Generate Nix configuration
|
||||
sudo mv /tmp/disko-config.nix /mnt/etc/nixos
|
||||
sudo nixos-generate-config --no-filesystems --root /mnt
|
||||
|
||||
## Downloads and places the predefinded generic flake to use
|
||||
|
@ -52,6 +51,9 @@ echo ""
|
|||
read -p "Enter your choice: " hostChoice
|
||||
echo ""
|
||||
|
||||
## Copies over the disko file for running `nixos-install`
|
||||
sudo mv /tmp/disko-config.nix /mnt/etc/nixos
|
||||
|
||||
if [ $hostChoice = 1 ]; then
|
||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/hosts/x86_64/vm/configuration.nix > vm.nix; sudo mv -f vm.nix /mnt/etc/nixos/
|
||||
sudo nixos-install --flake /mnt/etc/nixos#vm
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue