nix/module/Podman.nix

28 lines
530 B
Nix
Raw Normal View History

{ lib, config, ... }:
with lib;
let
cfg = config.module.podman;
in
{
options = {
module.podman = {
enable = mkEnableOption "OCI Podman.";
};
};
2024-06-25 04:04:39 +03:00
config = mkIf cfg.enable {
virtualisation = {
podman = {
enable = true;
2024-06-25 04:04:39 +03:00
# Free the 53 port ffs.
defaultNetwork.settings.dns_enabled = false;
2024-06-25 04:04:39 +03:00
# Do not interfere with Docker so we can have both installed at the same time.
# Podman can't replace Docker anyway.
dockerCompat = false;
};
};
};
2024-06-25 04:04:39 +03:00
}