From cb259c04d76a369e93ab945a54c18c8ddba859b2 Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Tue, 5 Aug 2025 17:14:56 -0500 Subject: [PATCH] wip onboard --- onboard.sh | 22 +++++++++++----------- readme.md | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/onboard.sh b/onboard.sh index 9c5ae26..4a8b6df 100644 --- a/onboard.sh +++ b/onboard.sh @@ -1,5 +1,5 @@ #!/bin/sh -# curl --proto '=https' --tlsv1.2 -sSf https://share.joshuabell.link/nix/onboard.sh +# curl --proto '=https' --tlsv1.2 -sSf https://git.joshuabell.xyz/ringofstorms/dotfiles/raw/branch/master/onboard.sh # Go to nix configuration cd /mnt/etc/nixos @@ -19,19 +19,19 @@ while true; do done # Switch to use labels in hardware-configuration -ex +'/fileSystems."\/"' +"/by-uuid" +'s#by-uuid/.*"#by-label/NIXROOT"' \ - +'/fileSystems."\/boot"' +"/by-uuid" +'s#by-uuid/.*"#by-label/NIXBOOT"' \ - +"wq" hardware-configuration.nix -echo "Switched hardware configuration to use labels" -grep "by-uuid" hardware-configuration.nix # Should show nothing, this will help prompt for changes -grep "by-label" hardware-configuration.nix -echo +# ex +'/fileSystems."\/"' +"/by-uuid" +'s#by-uuid/.*"#by-label/NIXROOT"' \ +# +'/fileSystems."\/boot"' +"/by-uuid" +'s#by-uuid/.*"#by-label/NIXBOOT"' \ +# +"wq" hardware-configuration.nix +# echo "Switched hardware configuration to use labels" +# grep "by-uuid" hardware-configuration.nix # Should show nothing, this will help prompt for changes +# grep "by-label" hardware-configuration.nix +# echo -echo "TODO add swap section here that asks for sizes..." -echo +# echo "TODO add swap section here that asks for sizes..." +# echo # Download settings needed for initial boot -curl -O https://share.joshuabell.link/nix/onboard.nix +curl -O https://git.joshuabell.xyz/ringofstorms/dotfiles/raw/branch/master/onboard.nix # update username and hostname in onboard file ex +"%s/%%HOSTNAME%%/$VAR_HOST/g" +"%s/%%USERNAME%%/$VAR_USER/g" +"wq" onboard.nix # Import onboard file in configuration.nix diff --git a/readme.md b/readme.md index acc0b73..96cac92 100644 --- a/readme.md +++ b/readme.md @@ -78,7 +78,7 @@ - `export USERNAME=desired_username_for_admin_on_this_machine` (josh) - `nixos-generate-config --root /mnt` - `cd /mnt/etc/nixos` - - `curl -O https://share.joshuabell.link/nix/onboard.sh` + - `curl --proto '=https' --tlsv1.2 -sSf https://share.joshuabell.link/nix/onboard.sh` - `chmod +x onboard.sh && ./onboard.sh` - verify hardware config, run `nixos-install` - `reboot`