From 9300fe1c747f3f21b98d28d489b4945142275d4b Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 30 Aug 2023 21:26:40 +0200 Subject: [PATCH] add podman --- configuration.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index b6f9860..11e2e89 100644 --- a/configuration.nix +++ b/configuration.nix @@ -5,7 +5,8 @@ with lib; let allowedTCPPorts = [ 80 443 8065 ]; allowedUDPPorts = [ ]; - autoUpdateContainers = true; + autoUpdateDockerContainers = true; + defaultContainerBackend = "docker"; hostName = "nixos-container-host"; systemPackages = with pkgs; [ bind @@ -149,9 +150,10 @@ in virtualisation = { docker.enable = true; - oci-containers.backend = "docker"; + podman.enable = true; - oci-containers.containers.watchtower = mkIf autoUpdateContainers { + oci-containers.backend = defaultContainerBackend; + oci-containers.containers.watchtower = mkIf autoUpdateDockerContainers { image = "containrrr/watchtower:latest"; volumes = [ "/var/run/docker.sock:/var/run/docker.sock" ]; extraOptions = [