diff --git a/modules/system/podman.nix b/modules/system/podman.nix new file mode 100644 index 0000000..4da83f9 --- /dev/null +++ b/modules/system/podman.nix @@ -0,0 +1,24 @@ +{ 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; + }; + }; + }; + }; +}