Lot of change on structs

This commit is contained in:
2026-04-09 09:09:13 +02:00
parent e656247a48
commit 90bc1eb63d
42 changed files with 108 additions and 133 deletions
@@ -0,0 +1,34 @@
{
pkgs,
lib,
config,
...
}:
with lib;
let
cfg = config.os.virtualisation.podman;
in
{
options.os.virtualisation.podman = {
enable = mkEnableOption "System docker service";
};
config = mkIf cfg.enable {
virtualisation = {
containers.enable = true;
podman = {
enable = true;
dockerCompat = true;
dockerSocket.enable = true;
defaultNetwork.settings.dns_enabled = true; # Required for containers under podman-compose to be able to talk to each other.
};
};
environment = {
systemPackages = with pkgs; [
podman-compose
];
};
};
}