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