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

24 lines
438 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 {
2024-07-24 15:49:31 -04:00
khepri.compositions."gameyfin".services."gameyfin" = {
image = import ./images/gameyfin.nix pkgs;
2024-02-28 16:59:34 -05:00
restart = "always";
user = "1000:1000";
2024-07-24 15:49:31 -04:00
environmentFiles = [secrets.gameyfin.path];
2024-02-28 16:59:34 -05:00
environment.GAMEYFIN_USER = "mathis";
volumes = [
"/data/games:/opt/gameyfin-library"
];
expose = ["8080"];
ports = ["8074:8080"];
};
}