lumiose setup fin
This commit is contained in:
+5
-4
@@ -15,6 +15,7 @@
|
||||
# 10. install the os (let it fail, fix it, repeat, etc) `nixos-install --flake /mnt/home/blake/.nix#hostname`
|
||||
# 11. set the root password
|
||||
# 12. reboot and dont forget to `sudo chown -R blake:blake /home/blake`
|
||||
# 13. change nix repo upstream to ssh
|
||||
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
@@ -85,9 +86,9 @@ mkdir -p /mnt/home/blake/.config/sops/age
|
||||
|
||||
# --- move config ---
|
||||
echo "moving nix config into /mnt/home/blake/.nix ..."
|
||||
mv /bootstrap_nix /mnt/home/blake/.nix
|
||||
echo "moving hardware into /mnt/home/blake/.nix/hosts/nixos/$HOSTNAME ..."
|
||||
cp /mnt/etc/nixos/hardware-configuration.nix /mnt/home/blake/.nix/hosts/nixos/$HOSTNAME
|
||||
cp /bootstrap_nix /mnt/home/blake/.nix
|
||||
#echo "moving hardware into /mnt/home/blake/.nix/hosts/nixos/$HOSTNAME ..."
|
||||
#cp /mnt/etc/nixos/hardware-configuration.nix /mnt/home/blake/.nix/hosts/nixos/$HOSTNAME
|
||||
|
||||
# --- write age key ---
|
||||
echo "writing age key..."
|
||||
@@ -100,7 +101,7 @@ echo "$AGE_KEY" | tee \
|
||||
echo
|
||||
echo "running nixos-install..."
|
||||
set +e
|
||||
nixos-install --flake /mnt/home/blake/.nix#"${HOSTNAME}"
|
||||
nixos-install --root /mnt --flake /mnt/home/blake/.nix#"${HOSTNAME}"
|
||||
INSTALL_EXIT=$?
|
||||
set -e
|
||||
|
||||
|
||||
Reference in New Issue
Block a user