4 ms·
So it processes the config file (and thus all needed packages) one time or does it process it every time you boot?
by prox 6y ago
So it processes the config file (and thus all needed packages) one time or does it process it every time you boot?
- heisenzombie 6y agoYou 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.
- prox 6y agoThanksfor your comment.This is very interesting for my Raspberry Pi. The ability kit it out according to function is great.
- takeda 6y agoWhenever 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))