From 36872c018091f6956e0f110108d165071f5b923e Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Tue, 30 Dec 2025 09:10:07 -0600 Subject: [PATCH] recover juni from no network manager --- utilities/nixos-installers/install_bcachefs.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/utilities/nixos-installers/install_bcachefs.md b/utilities/nixos-installers/install_bcachefs.md index c61ad71e..c2bf62fe 100644 --- a/utilities/nixos-installers/install_bcachefs.md +++ b/utilities/nixos-installers/install_bcachefs.md @@ -100,6 +100,8 @@ CLOSURE=$(readlink -f result) echo $CLOSURE # on target nixos-install --system $CLOSURE + +# OR fully offline over flash drive... ``` - After boot @@ -110,6 +112,18 @@ nh os switch "git+https://git.joshuabell.xyz/ringofstorms/dotfiles?dir=hosts/i00 cd ~/.config git clone https://git.joshuabell.xyz/ringofstorms/dotfiles nixos-config cd ~/.config/nixos-config/hosts/i001 +# OR via flashdrive +HOST=juni +cd ~/.config/nixos-config/hosts/$HOST +nixos-rebuild build --flake ".#$HOST" +CLOSURE="$(readlink -f result)" +nix-store --export $(nix-store -qR "$CLOSURE") > /run/media/josh/69F7-F789/system.export +# on target host +nix-store --import < /path/to/system.export +# ls -td /nix/store/*-nixos-system-* +CLOSURE="" +nix-env -p /nix/var/nix/profiles/system --set "$CLOSURE" +"$CLOSURE"/bin/switch-to-configuration switch ``` or from host machine? TODO haven't tried this fully