nixos/podman: persist timer

otherwise the timer might never run on laptops which could be shutdown
during the night
This commit is contained in:
Sandro Jäckel 2023-05-20 02:48:09 +02:00
parent 9cdd9edc19
commit 9ad0793b40
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -206,6 +206,11 @@ in
systemd.user.sockets.podman.wantedBy = [ "sockets.target" ];
systemd.timers.podman-prune.timerConfig = lib.mkIf cfg.autoPrune.enable {
Persistent = true;
RandomizedDelaySec = 1800;
};
systemd.tmpfiles.packages = [
# The /run/podman rule interferes with our podman group, so we remove
# it and let the systemd socket logic take care of it.