From df9b060947af50f182643b38429c9bc2148452fa Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 11 Jun 2023 16:23:31 +0100 Subject: [PATCH] modules: system: podman: check for docker conflict --- modules/system/podman/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/system/podman/default.nix b/modules/system/podman/default.nix index 765ed3d..52630c7 100644 --- a/modules/system/podman/default.nix +++ b/modules/system/podman/default.nix @@ -9,6 +9,16 @@ in }; config = lib.mkIf cfg.enable { + assertions = [ + { + assertion = cfg.enable -> !config.my.system.docker.enable; + message = '' + `config.my.system.podman` is incompatible with + `config.my.system.docker`. + ''; + } + ]; + virtualisation.podman = { enable = true;