# Additions to automatically allowed upgrades
Unattended-Upgrade::Allowed-Origins {
    "${distro_id}:${distro_codename}-updates";
    "${distro_id}:${distro_codename}-proposed";
    "${distro_id}:${distro_codename}-backports";
};

# Download and install upgrades on AC power and battery
Unattended-Upgrade::OnlyOnACPower "false";

# Blacklist NVIDIA drivers from automatic updates, to avoid breaking jobs
Unattended-Upgrade::Package-Blacklist {
    "nvidia-driver-";
    "libnvidia-compute-";
};

# Do automatic removal of newly unused dependencies after the upgrade
Unattended-Upgrade::Remove-New-Unused-Dependencies "true";

# Do automatic removal of unused packages after the upgrade
# (equivalent to apt-get autoremove)
Unattended-Upgrade::Remove-Unused-Dependencies "true";

# Automatically reboot *WITHOUT CONFIRMATION*
#  if the file /var/run/reboot-required is found after the upgrade
Unattended-Upgrade::Automatic-Reboot "false";

# If automatic reboot is enabled and needed, reboot at the specific
# time instead of immediately
#  Default: "now"
Unattended-Upgrade::Automatic-Reboot-Time "06:00";
