mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
Import vm configuration file
This commit is contained in:
parent
7a6c1f5104
commit
82791c73b1
1 changed files with 1 additions and 3 deletions
|
@ -28,9 +28,6 @@ sudo nix --experimental-features "nix-command flakes" run github:nix-community/d
|
|||
sudo nixos-generate-config --no-filesystems --root /mnt
|
||||
sudo mv /tmp/disko-config.nix /mnt/etc/nixos
|
||||
|
||||
# Removes generated configuration file as it's being replaced with our own
|
||||
sudo rm /mnt/etc/nixos/configuration.nix
|
||||
|
||||
# Downloads and places the predefinded generic flake to use
|
||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/flake/flake.nix > flake.nix; sudo mv -f flake.nix /mnt/etc/nixos/
|
||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/flake/configuration.nix > configuration.nix; sudo mv -f configuration.nix /mnt/etc/nixos/
|
||||
|
@ -49,6 +46,7 @@ read deviceChoice
|
|||
|
||||
if [ $deviceChoice = 1 ]; then
|
||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/flake/flake.nix > flake.nix; sudo mv -f flake.nix /mnt/etc/nixos/
|
||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/flake/systems/vm.nix > configuration.nix; sudo mv -f configuration.nix /mnt/etc/nixos/
|
||||
sudo nixos-install --flake /mnt/etc/nixos#vm
|
||||
|
||||
elif [ $deviceChoice = 2 ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue