mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
Update install.sh
This commit is contained in:
parent
fa3172128f
commit
677a228836
1 changed files with 8 additions and 10 deletions
18
install.sh
18
install.sh
|
@ -93,20 +93,18 @@ curl https://gitlab.com/ahoneybun/nixos-cli-installer/-/raw/nathaniel-btrfs/conf
|
||||||
# Install
|
# Install
|
||||||
sudo nixos-install
|
sudo nixos-install
|
||||||
|
|
||||||
|
# Start Setup section
|
||||||
|
curl https://gitlab.com/ahoneybun/nixos-cli-installer/-/raw/nathaniel-btrfs/setup.sh > /mnt/setup.sh
|
||||||
|
|
||||||
# Enter into installed OS
|
# Enter into installed OS
|
||||||
sudo mount -o bind /dev /mnt/dev
|
sudo mount -o bind /dev /mnt/dev
|
||||||
sudo mount -o bind /proc /mnt/proc
|
sudo mount -o bind /proc /mnt/proc
|
||||||
sudo mount -o bind /sys /mnt/sys
|
sudo mount -o bind /sys /mnt/sys
|
||||||
sudo chroot /mnt /nix/var/nix/profiles/system/activate
|
sudo chroot /mnt /nix/var/nix/profiles/system/activate
|
||||||
sudo chroot /mnt /run/current-system/sw/bin/bash
|
sudo chroot /mnt /run/current-system/sw/bin/bash setup.sh
|
||||||
|
|
||||||
# Set user password
|
# Removed install script.
|
||||||
echo "----------"
|
|
||||||
echo ""
|
|
||||||
echo "Which is the username?"
|
|
||||||
read userName
|
|
||||||
|
|
||||||
sudo passwd $userName
|
|
||||||
|
|
||||||
# Removed downloaded script.
|
|
||||||
rm install.sh
|
rm install.sh
|
||||||
|
|
||||||
|
# Remove setup script
|
||||||
|
rm setup.sh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue