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

32 lines
629 B
Nix
Raw Normal View History

rwDataDir: {
2024-07-24 15:49:31 -04:00
config,
pkgs,
...
}: let
2024-02-28 16:59:34 -05:00
inherit (config.sops) secrets;
in {
virtualisation.docker.compose."gameyfin" = {
networks.proxy_net = {external = true;};
2024-02-28 16:59:34 -05:00
services."gameyfin" = {
image = pkgs.callPackage ./images/gameyfin.nix pkgs;
restart = "always";
user = "1000:1000";
2024-02-28 16:59:34 -05:00
env_file = [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
};
# For accurate stack trace
_file = ./compose.nix;
2024-02-28 16:59:34 -05:00
}