From 4abe7423c89eab5abdb41de925c524a864274622 Mon Sep 17 00:00:00 2001 From: blake Date: Sat, 11 Oct 2025 02:39:30 -0500 Subject: [PATCH] 261 current 2025-10-11 02:26:00 25.05.20251006.20c4598 6.12.50 * --- modules/system/podman.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 modules/system/podman.nix 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; + }; + }; + }; + }; +}