this post was submitted on 15 Nov 2023
1 points (100.0% liked)

Nix

1 readers
1 users here now

founded 1 year ago
MODERATORS
 

Kind of a strange question, but let's say that the apocalypse occurs, or at least solar flares that knock out the internet for months. What services would you need to self-host to be able to arbitrarily configure and build a NixOS based system?

Ideally, you'd point your system to self-hosted services, such as your own nixpkgs and binary cache, which get synced with public repos regularly. Is that all that is needed? Or would there be more to it? How would you ensure the cache has all needed packages? Presumably you wouldn't be able to rebuild a lot of packages without internet. Or can dependencies be cached as well?

top 9 comments
sorted by: hot top controversial new old
[–] csg6117@alien.top 2 points 11 months ago (1 children)

If you were only looking for a replication of a machine config you have running at the moment, without the ability to add extra packages, then you can create your own ISO.

This post https://www.reddit.com/r/NixOS/comments/y1xo2u/how_to_create_an_iso_with_my_config_files/ has more information.

[–] TuringTestTwister@alien.top 1 points 11 months ago

This seems like a decent alternative in lieu of replicating the entire nix store.

[–] ukralibre@alien.top 1 points 11 months ago

Carve your config in stone! :)

[–] no_brains101@alien.top 1 points 11 months ago

If a solar flare happened that knocked out the internet your computer wouldn't work anymore.

[–] cfx_4188@alien.top 1 points 11 months ago

that knock out the internet for months.

This could have ended the discussion.

[–] Far-Cat@alien.top 1 points 11 months ago (1 children)
[–] FirstOptimal@alien.top 1 points 11 months ago

My daily driver for the past years.

[–] dpak90@alien.top 1 points 11 months ago

I think you'd need to clone the entire nixstore or whatever. I made a similar post:
https://www.reddit.com/r/NixOS/comments/12m8ojo/how_big_is_the_nix_store/

So you would need a ton of disk space, atleast 200TBs

[–] JamesBrickley@alien.top 1 points 11 months ago

Search for "Carrington Event" in 1859. Were such a coronal mass ejection event to re-occur in modern days; it would be beyond catastrophic. The problem is not so much a loss of Internet as a loss of electrical power that could last decades. It would definitely fry any exposed electronics, especially semi-conductors. It would destroy power station transformers which are not easy to manufacture and would take many years to replace a large number of them. Providing you had power to run manufacturing.