25 lines
467 B
Nix
25 lines
467 B
Nix
{ pkgs, config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.modules.system.podman;
|
|
in
|
|
{
|
|
options.modules.system.podman = {
|
|
enable = lib.mkEnableOption "enables podman";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
virtualisation = {
|
|
oci-containers.backend = "podman";
|
|
podman = {
|
|
enable = true;
|
|
dockerCompat = true;
|
|
autoPrune.enable = true;
|
|
defaultNetwork.settings = {
|
|
dns_enabled = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|