server/nixos/backend/fic-evdist.nix
2024-04-19 11:46:51 +02:00

22 lines
568 B
Nix

{ config, inputs, pkgs, ... }:
{
config.virtualisation.oci-containers.containers.fic-evdist = {
image = "fic-evdist:latest";
imageFile = pkgs.dockerTools.buildImage {
name = "fic-evdist";
tag = "latest";
created = "now";
config = {
Cmd = [ "${inputs.ficpkgs.packages.x86_64-linux.fic-evdist}/bin/evdist" ];
};
};
autoStart = true;
workdir = "/srv";
volumes = [
"/etc/hosts:/etc/hosts:ro"
"/var/lib/fic/settings:/srv/SETTINGS"
"/var/lib/fic/settingsdist:/srv/SETTINGSDIST"
];
};
}