From eecd84f49756915287bace1577edbf25fe1e487e Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Mon, 24 Nov 2025 01:17:37 +0100 Subject: [PATCH] rename podman config name --- hosts/nixos/hs/system.nix | 2 +- modules/podman.nix | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hosts/nixos/hs/system.nix b/hosts/nixos/hs/system.nix index 67bb983..6fa3eef 100644 --- a/hosts/nixos/hs/system.nix +++ b/hosts/nixos/hs/system.nix @@ -13,7 +13,7 @@ ]; # Automatic container updates - virtualisation.podman.autoUpdate = { + virtualisation.podman.updateContainers = { enable = true; interval = "Wed *-*-* 06:00:00"; }; diff --git a/modules/podman.nix b/modules/podman.nix index 543b034..82418cd 100644 --- a/modules/podman.nix +++ b/modules/podman.nix @@ -47,7 +47,7 @@ let ''; in { - options.virtualisation.podman.autoUpdate = { + options.virtualisation.podman.updateContainers = { enable = mkEnableOption "automatic container updates"; interval = mkOption { @@ -82,7 +82,7 @@ in environment.systemPackages = [ update-containers-script ]; # Automatic container updates via systemd timer - systemd.services.container-update-all = mkIf cfg.autoUpdate.enable { + systemd.services.container-update-all = mkIf cfg.updateContainers.enable { description = "Automatic Podman container updates"; serviceConfig = { Type = "oneshot"; @@ -90,11 +90,11 @@ in }; }; - systemd.timers.container-update-all = mkIf cfg.autoUpdate.enable { + systemd.timers.container-update-all = mkIf cfg.updateContainers.enable { description = "Timer for automatic Podman container updates"; wantedBy = [ "timers.target" ]; timerConfig = { - OnCalendar = cfg.autoUpdate.interval; + OnCalendar = cfg.updateContainers.interval; Persistent = true; }; };