From 8d11e6122780da7b8df9828f0b199c01e6b3237f Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Fri, 14 Jun 2024 03:22:51 +0300 Subject: [PATCH] Home : Disable auto-switch. --- host/home/default.nix | 6 +++++- module/common/AutoUpdateSigned.nix | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/host/home/default.nix b/host/home/default.nix index 3e85e0f..be75107 100644 --- a/host/home/default.nix +++ b/host/home/default.nix @@ -1,8 +1,12 @@ -{ ... }: { +{ lib, ... }: { imports = [ ./Backup.nix ./Container.nix ./Filesystem.nix ./Network.nix ]; + + # Disable auto-switch. + systemd.services.autoupdate.enable = lib.mkForce false; + systemd.timers.autoupdate.enable = lib.mkForce false; } diff --git a/module/common/AutoUpdateSigned.nix b/module/common/AutoUpdateSigned.nix index 09d5c72..1263489 100644 --- a/module/common/AutoUpdateSigned.nix +++ b/module/common/AutoUpdateSigned.nix @@ -30,6 +30,7 @@ }; systemd.timers.autoupdate = { + enable = true; timerConfig = { OnCalendar = "hourly"; Persistent = true;