add lumiose, init install notes

This commit is contained in:
2026-04-26 01:54:04 -05:00
parent c631ad5e05
commit 0dd7cf5cd6
3 changed files with 20 additions and 0 deletions
Regular → Executable
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
# this will one day be an interactive install bootstrap script for my nix config!
# right now this shall be treated as psudocode but also just a list of steps for installing
# without further adoo:
#
# 1. boot target device into nixos installer iso
# 2. `sudo -i``
# 3. `git clone https://git.blakedheld.xyz/blake/nix.git bootstrap_nix`
# 4. if new host use `ls -l /dev/disk/by-id/` to get the id of the target disk and update the related line in the disko config for that host (or partition the target disk manually however you wish)
# 5. run the disko install command `nix run github:nix-community/disko -- --mode destroy,format,mount --flake bootstrap_nix#hostname` to just format the disk(s)
# 6. generate hardware config `nixos-generate-config --root /mnt`
# 7. create directories for keys `mkdir -p /mnt/etc/sops` `mkdir -p /mnt/home/blake/.config/sops/age`
# 8. move nix config to home dir `mv /bootstrap_nix /mnt/home/blake/.nix`
# 9. copy age keys.txt to previously made dirs `echo "<key>" | tee /mnt/etc/sops/keys.txt /mnt/home/blake/.config/sops/age/keys.txt > dev/null`
# 10. install the os (let it fail, fix it, repeat, etc) `nixos-install --flake /mnt/home/blake/.nix`
# 11. set the root password
# 12. reboot and dont forget to `sudo chown -R blake:blake /home/blake`
+1
View File
@@ -116,6 +116,7 @@
modules = [
./hosts/nixos/lumiose/configuration.nix
inputs.home-manager.nixosModules.default
inputs.disko.nixosModules.disko
];
};
};
+1
View File
@@ -8,6 +8,7 @@ in
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./disko.nix
../../nixos
../../../users/blake
../../../modules/system