dots/modules/hosts/nixos/nixnuc/containers/photon.nix
Gene Liverman 9c83c552a8
Suppress Podman BoltDB deprecation warning in photon container
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-28 11:36:08 -04:00

29 lines
719 B
Nix

{ config, ... }:
let
volume_base = "/orico/photon";
http_port = "2322";
in
{
systemd.services."${config.virtualisation.oci-containers.containers.photon.serviceName}" = {
after = [ "zfs-create-orico-datasets.service" ];
wants = [ "zfs-create-orico-datasets.service" ];
};
virtualisation.oci-containers.containers = {
"photon" = {
autoStart = true;
image = "docker.io/rtuszik/photon-docker:latest";
environment = {
REGION = "planet";
SUPPRESS_BOLTDB_WARNING = "1";
UPDATE_STRATEGY = "PARALLEL";
UPDATE_INTERVAL = "30d";
};
ports = [ "${http_port}:2322" ];
volumes = [
"${volume_base}:/photon/data"
];
};
};
}