allow automatic rebooting on kernel updates
This commit is contained in:
parent
07ce7643e0
commit
41a3cdbedb
2 changed files with 122 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue