mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
debugging mounted error for bootloader
This commit is contained in:
parent
1f2d03cf1a
commit
82a7d56a2c
1 changed files with 9 additions and 3 deletions
12
install.sh
12
install.sh
|
@ -27,6 +27,12 @@ sudo nix --experimental-features "nix-command flakes" run github:nix-community/d
|
|||
## Generate Nix configuration
|
||||
sudo nixos-generate-config --no-filesystems --root /mnt
|
||||
|
||||
## Copies over the disko file for running `nixos-install`
|
||||
sudo mv /tmp/disko-config.nix /mnt/etc/nixos
|
||||
|
||||
## Confirm that partitions are mounted
|
||||
mount | grep /mnt
|
||||
|
||||
## Downloads and places the predefinded generic flake to use
|
||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/flake.nix > flake.nix; sudo mv -f flake.nix /mnt/etc/nixos/
|
||||
|
||||
|
@ -34,6 +40,9 @@ curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/flake.nix > flake.nix;
|
|||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/configuration.nix > configuration.nix; sudo mv -f configuration.nix /mnt/etc/nixos/
|
||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/home.nix > home.nix; sudo mv -f home.nix /mnt/etc/nixos/
|
||||
|
||||
## Confirm that partitions are mounted
|
||||
mount | grep /mnt
|
||||
|
||||
# Step 3: Choosing a predefined system flake file to use
|
||||
|
||||
cat << EOF
|
||||
|
@ -49,9 +58,6 @@ 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
|
||||
|
||||
## Workaround for `no free space` error
|
||||
sudo nix-collect-garbage
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue