mirror of
https://github.com/genebean/dots.git
synced 2026-05-30 23:35:22 -04:00
29 lines
719 B
Nix
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"
|
|
];
|
|
};
|
|
};
|
|
|
|
}
|