rename podman config name
This commit is contained in:
parent
4d05a6fbe9
commit
eecd84f497
2 changed files with 5 additions and 5 deletions
|
|
@ -13,7 +13,7 @@
|
|||
];
|
||||
|
||||
# Automatic container updates
|
||||
virtualisation.podman.autoUpdate = {
|
||||
virtualisation.podman.updateContainers = {
|
||||
enable = true;
|
||||
interval = "Wed *-*-* 06:00:00";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue