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" + ]; + }; }