nix(loki): enable podman

This commit is contained in:
surtur 2023-12-03 22:40:10 +01:00
parent 2477d1ffbe
commit a09d7632a5
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI
2 changed files with 28 additions and 0 deletions

@ -15,6 +15,7 @@
./modules/authentik.nix
./modules/gonic.nix
./modules/attic.nix
./modules/podman.nix
../../modules/base.nix
../../modules/dnscrypt.nix

@ -0,0 +1,27 @@
{
config,
pkgs,
...
}: {
virtualisation = {
containers.storage.settings = {
# configure for zfs.
storage = {
driver = "zfs";
graphroot = "/var/lib/containers/storage";
runroot = "/run/containers/storage";
};
};
## setup podman.
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enable = true;
};
oci-containers = {
## use podman as the default container engine.
backend = "podman";
};
};
}