New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to perform unattended system upgrades? #842
Comments
+1 There are blog posts suggesting to manually copy the configuration which seems to work, but I would appreciate some opinions from the maintainers on this.. |
The only blog post I've been able to find on this issue is: |
Why doesn’t NixOps copy the |
@craigem Does my approach work for you? My configuration has changes slightly since the post. You can find the current version here. However my auto-upgrade @asymmetric I guess because there is more to it than just copying that file. Look at my configuration for a tast. My approach serves most of my needs but I doubt that it works for everyone. |
My hacky work-around is the following 2 lines in my
Hope that helps someone. |
@MelleB Do you copy |
@asymmetric Yes, but you need the activation script and nixos-upgrade-path too. This should be all you need besides the standard nixos-upgrade options. |
Maybe I'm missing something... but if you want automatic upgrades on |
That doesn't really work if you run nixops from a laptop, or a workstation that's not always online. It's not a workflow I'd recommend for Real World Business Use, but I suspect it's a common scenario for individual users and SOHO deployments. |
In conventional NixOS deployments there is the
system.autoUpgrade
option which setups a systemd timer and service which perform periodically channel upgrades andnixos-rebuild switch
.Given that nixops does not deploy the configuration to
/etc/nixos
(sosystem.autoUpgrade
cannot be effectively used), is there anything else that people are using for the same purpose?The text was updated successfully, but these errors were encountered: