News for hackers. Stuff that matters.
Re:Nix-Powered Development with OCaml by one-punch on Monday March 06, 2023 @07:20AM (#35040160)
> For example, if you Ctrl-C while its downloading an update, you get in a weird state where nothing works. …

There is a new Nix installer from Determinate Systems, a company heavily invested in Nix, which should make installing Nix more atomic, reversible, and thus easier:

The Determinate Nix Installer https://news.ycombinator.com/item?id=34957953

And after getting pass the installation, Nix is great for production.

Re:Nix-Powered Development with OCaml by lostmsu on Monday March 06, 2023 @09:48AM (#35041636)
The parent talks about an interrupted update process.
Re:Nix-Powered Development with OCaml by Filligree on Monday March 06, 2023 @10:15AM (#35041961)
Interrupted updates don't do that. In single-user mode you could maybe ctrl-c it during the final activation phase, but that's a small fraction of a second -- it's just replacing a few symlinks.

In the default multi-user mode, you can't even do that.

Re:Nix-Powered Development with OCaml by kaba0 on Monday March 06, 2023 @12:18PM (#35043718)
Yes. This is like a major benefit of nix(os), updates and everything is basically atomic. If you interrupt an update you will just have a few more downloaded folders in your nix store folder, which are trivially GC-d on the next run. This is unlike pretty much anything else.
Re:Nix-Powered Development with OCaml by shepardrtc on Monday March 06, 2023 @10:10PM (#35051066)
I'll take a look, thank you.