Loading nixos/modules/virtualisation/podman/default.nix +10 −6 Original line number Diff line number Diff line { config, lib, pkgs, ... }: { config, lib, utils, pkgs, ... }: let cfg = config.virtualisation.podman; json = pkgs.formats.json { }; Loading Loading @@ -202,11 +202,15 @@ in restartIfChanged = false; unitConfig.X-StopOnRemoval = false; serviceConfig.Type = "oneshot"; script = '' ${cfg.package}/bin/podman system prune -f ${toString cfg.autoPrune.flags} ''; serviceConfig = { Type = "oneshot"; ExecStart = utils.escapeSystemdExecArgs ([ (lib.getExe cfg.package) "system" "prune" "-f" ] ++ cfg.autoPrune.flags); }; startAt = lib.optional cfg.autoPrune.enable cfg.autoPrune.dates; after = [ "podman.service" ]; Loading Loading
nixos/modules/virtualisation/podman/default.nix +10 −6 Original line number Diff line number Diff line { config, lib, pkgs, ... }: { config, lib, utils, pkgs, ... }: let cfg = config.virtualisation.podman; json = pkgs.formats.json { }; Loading Loading @@ -202,11 +202,15 @@ in restartIfChanged = false; unitConfig.X-StopOnRemoval = false; serviceConfig.Type = "oneshot"; script = '' ${cfg.package}/bin/podman system prune -f ${toString cfg.autoPrune.flags} ''; serviceConfig = { Type = "oneshot"; ExecStart = utils.escapeSystemdExecArgs ([ (lib.getExe cfg.package) "system" "prune" "-f" ] ++ cfg.autoPrune.flags); }; startAt = lib.optional cfg.autoPrune.enable cfg.autoPrune.dates; after = [ "podman.service" ]; Loading