nixos-configs/devices/nos/modules/docker/gameyfin/compose.nix

29 lines
551 B
Nix
Raw Normal View History

2024-07-24 15:49:31 -04:00
{
config,
pkgs,
...
}: let
2024-02-28 16:59:34 -05:00
inherit (config.sops) secrets;
in {
khepri.compositions."gameyfin" = {
networks.proxy_net = {external = true;};
2024-02-28 16:59:34 -05:00
services."gameyfin" = {
image = import ./images/gameyfin.nix pkgs;
restart = "always";
user = "1000:1000";
2024-02-28 16:59:34 -05:00
environmentFiles = [secrets.gameyfin.path];
environment.GAMEYFIN_USER = "mathis";
2024-02-28 16:59:34 -05:00
volumes = [
"/data/games:/opt/gameyfin-library"
];
expose = ["8080"];
ports = ["8074:8080"];
networks = ["proxy_net"];
};
2024-02-28 16:59:34 -05:00
};
}