NixOS "auto-update" feature #7369

Closed
copumpkin opened this Issue Apr 13, 2015 · 4 comments

Projects

None yet

3 participants

@copumpkin
Member

I could see some people wanting their NixOS instance to automatically run nixos-rebuild switch --upgrade on some schedule. Doing the obvious thing (creating a systemd job that runs periodically and runs that command) fails because you can't sensibly run nixos-rebuild inside a systemd job (see #6662).

Is there a nice way to get this behavior? The idea is that given a fixed configuration and a channel, you don't want to have to worry about keeping yourself up to date with patch releases.

@jagajaga
Member

Maybe use cron? Or I didn't get your question..

@copumpkin
Member

Is cron independent of systemd on NixOS? If it runs inside a systemd service, I'll have the same problem I describe in #6662.

@jagajaga
Member

My fault.

@edolstra edolstra added a commit that closed this issue Aug 7, 2015
@edolstra edolstra Add auto update feature
You can now keep your system up to date automatically by setting:

  system.autoUpgrade.enable = true;

Fixes #7369.
43c4756
@edolstra edolstra closed this in 43c4756 Aug 7, 2015
@copumpkin
Member

❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment