lumiose setup fin

This commit is contained in:
2026-04-26 03:15:29 -05:00
parent 559d5615ea
commit 64d4f36d4d
3 changed files with 16 additions and 12 deletions
+5 -4
View File
@@ -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