4 ms·
Put whatever update command (nixos-rebuild switch --upgrade I believe? haven't touched nixos in a while) in a crontab and you get automatic updates. If the upda
by roblabla 8y ago
Put whatever update command (nixos-rebuild switch --upgrade I believe? haven't touched nixos in a while) in a crontab and you get automatic updates. If the update fucked it up, you can boot back into the previous configuration. In this way, it's really, really hard to brick a NixOS install. That's the beauty of it.
Of course, it's not going to be as transparent as ChromeOS: If the update failed, you'll have to manually select the previous configuration in the GRUB menu. That's definitely something solvable with a bit of code though.
So, yes, automatic and seamless updates can be achieved with NixOS, given a bit of configuration and maybe a bit of code. Whether it's the right approach for your use-case remains an open question though. NixOS has many other rough edges (many applications don't "just work" on it) which might make it a deal-breaker, depending on your use-case. But you might want to look into its update models, you might get some good ideas :).
- m45t3r 8y ago> Put whatever update command (nixos-rebuild switch --upgrade I believe? haven't touched nixos in a while) in a crontab and you get automatic updates. It is even easier, really. Just add the following to your /etc/nixos/configuration.nix file: system.autoUpgrade = { enable = true; dates = "daily"; };