You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently had the case of my NixOS-WSL going more or less permanently offline on a host otherwise connected to the net. Bc I suspected my recent configuration change to have caused the situation I operated in an offline manner documented here as well as here (marked there as Workaround) to fix the installed WSL instance.
My NixOS-WSL setup is flake based and basically uses a local clone of the flake in /root/.nix-config.
Also my setup is way too specific I guess to entirely add it here as an example where that could go wrong and how to possibly fix it then. I'm open for requests otherwise.
Basic take homes for fixing NixOS-WSL installation in an offline manner without re-importing the tarball thus resetting your WSL instance:
Have more or less all of the following is probably not a bad idea
git and nnn installed # with that I can i. e. $ sudo nnn /root/.nix-config
keep-derivations = true
/root/.nix-config meaning the local flake repo never deleted if I don't know exactly what I want to do
while indeliberatly operating offline not enabling config that requires online resources not locally cached (yes still complicated)
Just wanted to add that as a reminder for the current state of workings of NixOS-WSL.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I recently had the case of my NixOS-WSL going more or less permanently offline on a host otherwise connected to the net. Bc I suspected my recent configuration change to have caused the situation I operated in an offline manner documented here as well as here (marked there as Workaround) to fix the installed WSL instance.
My NixOS-WSL setup is flake based and basically uses a local clone of the flake in
/root/.nix-config
.Also my setup is way too specific I guess to entirely add it here as an example where that could go wrong and how to possibly fix it then. I'm open for requests otherwise.
Basic take homes for fixing NixOS-WSL installation in an offline manner without re-importing the tarball thus resetting your WSL instance:
Have more or less all of the following is probably not a bad idea
git
andnnn
installed # with that I can i. e. $ sudo nnn /root/.nix-configkeep-derivations = true
/root/.nix-config
meaning the local flake repo never deleted if I don't know exactly what I want to doJust wanted to add that as a reminder for the current state of workings of NixOS-WSL.
Beta Was this translation helpful? Give feedback.
All reactions