modules/nixos/common/auto-upgrade: use mkDefault

This commit is contained in:
zowoq 2023-08-22 09:05:13 +10:00
parent 403970df0f
commit 65cbaa5f4f
2 changed files with 4 additions and 3 deletions
modules/nixos
cachix-deploy
common

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, ... }:
{
sops.secrets.cachix-agent-token.sopsFile = ./secrets.yaml;
@ -7,5 +7,5 @@
credentialsFile = config.sops.secrets.cachix-agent-token.path;
};
system.autoUpgrade.enable = lib.mkForce false;
system.autoUpgrade.enable = false;
}

View file

@ -1,5 +1,6 @@
{ lib, ... }:
{
system.autoUpgrade.enable = true;
system.autoUpgrade.enable = lib.mkDefault true;
system.autoUpgrade.flake = "github:nix-community/infra";
system.autoUpgrade.dates = "hourly";
system.autoUpgrade.flags = [ "--option" "accept-flake-config" "true" "--option" "tarball-ttl" "0" ];