From 71a84c27fa2109bd356ed8eeaf912e6ad91b0094 Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Mon, 15 May 2023 13:51:17 -0300 Subject: [PATCH] hosts/podman: conditionally enable docker compat Only if docker itself is not enabled. --- hosts/common/global/podman.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hosts/common/global/podman.nix b/hosts/common/global/podman.nix index 8de15c98..50c864ab 100644 --- a/hosts/common/global/podman.nix +++ b/hosts/common/global/podman.nix @@ -1,9 +1,13 @@ +{ config, ... }: +let + dockerEnabled = config.virtualisation.docker.enable; +in { virtualisation.podman = { enable = true; - dockerCompat = true; - dockerSocket.enable = true; - defaultNetwork.dnsname.enable = true; + dockerCompat = !dockerEnabled; + dockerSocket.enable = !dockerEnabled; + defaultNetwork.settings.dns_enabled = true; }; environment.persistence = {