diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2023-05-20 02:48:09 +0200 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2023-05-21 17:24:16 +0200 |
commit | 9ad0793b40b687a4b63182cabd7827cc5a76f532 (patch) | |
tree | 295f1d3e00baf502f3843985e444aff55335ab67 /nixos/modules/virtualisation | |
parent | 9cdd9edc19ef2b7fa6026a26ede191a25b70380f (diff) | |
download | nixpkgs-9ad0793b40b687a4b63182cabd7827cc5a76f532.tar nixpkgs-9ad0793b40b687a4b63182cabd7827cc5a76f532.tar.gz nixpkgs-9ad0793b40b687a4b63182cabd7827cc5a76f532.tar.bz2 nixpkgs-9ad0793b40b687a4b63182cabd7827cc5a76f532.tar.lz nixpkgs-9ad0793b40b687a4b63182cabd7827cc5a76f532.tar.xz nixpkgs-9ad0793b40b687a4b63182cabd7827cc5a76f532.tar.zst nixpkgs-9ad0793b40b687a4b63182cabd7827cc5a76f532.zip |
nixos/podman: persist timer
otherwise the timer might never run on laptops which could be shutdown during the night
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 c3fae4bac41..ec0b713e58b 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. |