modules: system: podman: check for docker conflict

This commit is contained in:
Bruno BELANYI 2023-06-11 16:23:31 +01:00
parent 73fdd4622b
commit df9b060947
1 changed files with 10 additions and 0 deletions

View File

@ -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;