rename podman config name

This commit is contained in:
Yan Lin 2025-11-24 01:17:37 +01:00
parent 4d05a6fbe9
commit eecd84f497
2 changed files with 5 additions and 5 deletions

View file

@ -13,7 +13,7 @@
]; ];
# Automatic container updates # Automatic container updates
virtualisation.podman.autoUpdate = { virtualisation.podman.updateContainers = {
enable = true; enable = true;
interval = "Wed *-*-* 06:00:00"; interval = "Wed *-*-* 06:00:00";
}; };

View file

@ -47,7 +47,7 @@ let
''; '';
in in
{ {
options.virtualisation.podman.autoUpdate = { options.virtualisation.podman.updateContainers = {
enable = mkEnableOption "automatic container updates"; enable = mkEnableOption "automatic container updates";
interval = mkOption { interval = mkOption {
@ -82,7 +82,7 @@ in
environment.systemPackages = [ update-containers-script ]; environment.systemPackages = [ update-containers-script ];
# Automatic container updates via systemd timer # 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"; description = "Automatic Podman container updates";
serviceConfig = { serviceConfig = {
Type = "oneshot"; 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"; description = "Timer for automatic Podman container updates";
wantedBy = [ "timers.target" ]; wantedBy = [ "timers.target" ];
timerConfig = { timerConfig = {
OnCalendar = cfg.autoUpdate.interval; OnCalendar = cfg.updateContainers.interval;
Persistent = true; Persistent = true;
}; };
}; };