From 4e3f027e52bd8fb30187b9b576ad9560108bfc32 Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Fri, 5 May 2023 17:47:35 -0300 Subject: [PATCH] make docker optional, fix podman dns problem --- hosts/common/global/default.nix | 1 - hosts/common/global/podman.nix | 3 ++- hosts/common/{global => optional}/docker.nix | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename hosts/common/{global => optional}/docker.nix (100%) diff --git a/hosts/common/global/default.nix b/hosts/common/global/default.nix index a2c49043..6397effa 100644 --- a/hosts/common/global/default.nix +++ b/hosts/common/global/default.nix @@ -4,7 +4,6 @@ inputs.home-manager.nixosModules.home-manager ./acme.nix ./auto-upgrade.nix - ./docker.nix ./fish.nix ./locale.nix ./nix.nix diff --git a/hosts/common/global/podman.nix b/hosts/common/global/podman.nix index 047b5a79..8de15c98 100644 --- a/hosts/common/global/podman.nix +++ b/hosts/common/global/podman.nix @@ -1,8 +1,9 @@ -{ lib, ... }: { +{ virtualisation.podman = { enable = true; dockerCompat = true; dockerSocket.enable = true; + defaultNetwork.dnsname.enable = true; }; environment.persistence = { diff --git a/hosts/common/global/docker.nix b/hosts/common/optional/docker.nix similarity index 100% rename from hosts/common/global/docker.nix rename to hosts/common/optional/docker.nix