allow automatic rebooting on kernel updates

This commit is contained in:
Daniel Frank 2019-07-03 22:31:48 +02:00
commit 41a3cdbedb
Signed by: tokudan
GPG key ID: 063CCCAD04182D32
2 changed files with 122 additions and 0 deletions

View file

@ -5,8 +5,10 @@
{ config, pkgs, ... }:
{
disabledModules = [ "tasks/auto-upgrade.nix" ];
imports =
[
./auto-upgrade.nix
./hardware-configuration.nix
./sshusers.nix
./variables.nix
@ -51,6 +53,7 @@
# Automatic update each day at 04:40. Will not restart the system, so a reboot every now and then is a good idea.
system.autoUpgrade.enable = true;
system.autoUpgrade.allowReboot = true;
nix = {
autoOptimiseStore = true;
gc.automatic = true;