diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2023-07-21 11:34:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 11:34:18 +0200 |
commit | 9f4a3203eb3ea11828b2b2e8ad359d7cf048d7e8 (patch) | |
tree | d7245bf3a167d4c715459cdbbc5e7e0b17e3125e /nixos/modules/virtualisation | |
parent | ffc3eb7c160c8bace077f0701ec6310ba0326fa0 (diff) | |
parent | 9ad0793b40b687a4b63182cabd7827cc5a76f532 (diff) | |
download | nixlib-9f4a3203eb3ea11828b2b2e8ad359d7cf048d7e8.tar nixlib-9f4a3203eb3ea11828b2b2e8ad359d7cf048d7e8.tar.gz nixlib-9f4a3203eb3ea11828b2b2e8ad359d7cf048d7e8.tar.bz2 nixlib-9f4a3203eb3ea11828b2b2e8ad359d7cf048d7e8.tar.lz nixlib-9f4a3203eb3ea11828b2b2e8ad359d7cf048d7e8.tar.xz nixlib-9f4a3203eb3ea11828b2b2e8ad359d7cf048d7e8.tar.zst nixlib-9f4a3203eb3ea11828b2b2e8ad359d7cf048d7e8.zip |
Merge pull request #233250 from SuperSandro2000/podman-timer-persist
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r-- | nixos/modules/virtualisation/podman/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/podman/default.nix b/nixos/modules/virtualisation/podman/default.nix index c3fae4bac41b..ec0b713e58b3 100644 --- a/nixos/modules/virtualisation/podman/default.nix +++ b/nixos/modules/virtualisation/podman/default.nix @@ -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. |