From d1e8296bc3822a7a9da2919cfa76dc656016209a Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Thu, 16 Mar 2023 20:46:27 +0100 Subject: [PATCH] arion: Switch to podman --- system/nixos/arion.nix | 34 ++++------------------------------ 1 file changed, 4 insertions(+), 30 deletions(-) diff --git a/system/nixos/arion.nix b/system/nixos/arion.nix index a5ff356..9185b7c 100644 --- a/system/nixos/arion.nix +++ b/system/nixos/arion.nix @@ -3,18 +3,10 @@ { environment.systemPackages = [ pkgs.arion - pkgs.docker-client ]; virtualisation = { docker.enable = false; - # docker = { - # enable = true; - # autoPrune = { - # enable = true; - # flags = [ "--all" ]; - # }; - # }; podman = { enable = true; @@ -22,32 +14,14 @@ defaultNetwork.settings.dns_enabled = true; }; - oci-containers = { - backend = "docker"; + containers.containersConf.cniPlugins = [ + pkgs.cniPlugins.dnsname + ]; - # containers.watchtower = { - # image = "containrrr/watchtower"; - # environment = { - # WATCHTOWER_POLL_INTERVAL = "21600"; - # WATCHTOWER_LABEL_ENABLE = "true"; - # WATCHTOWER_NOTIFICATIONS = "shoutrrr"; - # WATCHTOWER_NOTIFICATIONS_HOSTNAME = config.networking.hostName; - # WATCHTOWER_NOTIFICATION_URL = secret.watchtower.ntfyUrl; - # }; - # volumes = [ - # "/var/run/docker.sock:/var/run/docker.sock" - # "/root/.docker/config.json:/config.json:ro" - # ]; - # extraOptions = [ - # "--label=com.centurylinklabs.watchtower.enable=true" - # ]; - # }; - }; + oci-containers.backend = "podman"; arion = { backend = "podman-socket"; }; }; - - # networking.firewall.interfaces."docker0".allowedTCPPorts = [ 443 ]; }