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

NixOS "auto-update" feature #7369

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

Comments

Projects
None yet
3 participants
@copumpkin
Member

copumpkin commented Apr 13, 2015

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

This comment has been minimized.

Member

jagajaga commented Apr 15, 2015

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

@copumpkin

This comment has been minimized.

Member

copumpkin commented Apr 15, 2015

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

This comment has been minimized.

Member

jagajaga commented Apr 15, 2015

My fault.

@copumpkin

This comment has been minimized.

Member

copumpkin commented Aug 7, 2015

❤️

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