From 0b1bb6198986128b5319d8bb4c9b210e06852789 Mon Sep 17 00:00:00 2001 From: Hermes-Neo Date: Sat, 18 Jul 2026 02:26:18 +0100 Subject: [PATCH] refactor: drop Incus, add Podman + Quadlets --- modules/common/podman.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 modules/common/podman.nix diff --git a/modules/common/podman.nix b/modules/common/podman.nix new file mode 100644 index 0000000..c89875d --- /dev/null +++ b/modules/common/podman.nix @@ -0,0 +1,22 @@ +{ config, lib, pkgs, ... }: +{ + virtualisation.podman = { + enable = true; + # Rootless containers by default + # No daemon — systemd + quadlets manage everything + }; + + # Quadlet support — .container files in /etc/containers/systemd/ + virtualisation.quadlet.enable = true; + + # Nix-declared containers + virtualisation.oci-containers = { + backend = "podman"; + containers = { + nginx-example = { + image = "nginx:latest"; + ports = [ "9999:80" ]; + }; + }; + }; +}