Files
nix-config/modules/apps/free-games-claimer/default.nix

26 lines
550 B
Nix

{ lib, config, ... }:
with lib;
let
cfg = config.nas-apps.free-games-claimer;
in
{
imports = [ ./options.nix ];
config = mkIf cfg.enable {
virtualisation.oci-containers.containers."${cfg.name}" = {
autoStart = cfg.autoStart;
image = cfg.image;
ports = [ "${cfg.httpPort}:6080" ];
volumes = [
"${cfg.dataPath}:/fgc/data"
];
environment = {
PUID = cfg.puid;
PGID = cfg.pgid;
TZ = cfg.timeZone;
# NOTIFY = "mailto://myemail:mypass@gmail.com";
};
};
};
}