News for hackers. Stuff that matters.
Re:What Is Nix? by prox on Wednesday May 20, 2020 @05:51PM (#23252327)
So it processes the config file (and thus all needed packages) one time or does it process it every time you boot?
Re:What Is Nix? by heisenzombie on Wednesday May 20, 2020 @06:07PM (#23252528)
You type

   nixos-rebuild switch
and it builds you an entire OS and drops you into it. It also makes the new OS the default on startup.

Because it's all purely declarative, your old OS is still there. If things go wrong then you can just pop back to it, either in the command line with:

    nixos-rebuild switch --rollback
Or when you reboot, the previous 'generations' of your operating system show up in GRUB, so just choose an older one to boot.
Re:What Is Nix? by prox on Thursday May 21, 2020 @12:06PM (#23260158)
Thanksfor your comment.This is very interesting for my Raspberry Pi. The ability kit it out according to function is great.
Re:What Is Nix? by takeda on Thursday May 21, 2020 @01:16AM (#23255046)
Whenever you run `nixos-rebuild switch` a symlink is created for `/run/current-system` which is the current system. That's what is used on every boot until another change (you also have an option in boot loader to boot into prior versions (it is just a symlink))