From e0093f134b9f1130dc2a6dffcce8e4d90d6a3dae Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 6 Oct 2024 17:25:52 +0100 Subject: [PATCH] change docker to podman for arion compatibility --- hosts/common/optional/docker/default.nix | 26 +++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/hosts/common/optional/docker/default.nix b/hosts/common/optional/docker/default.nix index f3338b3..8d06604 100644 --- a/hosts/common/optional/docker/default.nix +++ b/hosts/common/optional/docker/default.nix @@ -1,10 +1,26 @@ -{pkgs, ...}: { +{ + pkgs, + inputs, + ... +}: { + imports = [inputs.arion.nixosModules.arion]; + environment.systemPackages = [ + pkgs.arion + pkgs.docker-client + ]; + virtualisation = { - docker = { + podman = { enable = true; + dockerSocket.enable = true; + defaultNetwork.settings.dns_enabled = true; }; }; - environment.systemPackages = with pkgs; [ - docker-compose - ]; + + environment.persistence."/persist" = { + hideMounts = true; + directories = [ + "/var/lib/containers" + ]; + }; }