nixos-configs/configurations/nos/modules/docker/gameyfin/compose.nix
matt1432 42ca2912c7
All checks were successful
Discord / discord commits (push) Has been skipped
feat(docker): khepri -> nixos-docker-compose
2025-01-30 23:25:25 -05:00

31 lines
629 B
Nix

rwDataDir: {
config,
pkgs,
...
}: let
inherit (config.sops) secrets;
in {
virtualisation.docker.compose."gameyfin" = {
networks.proxy_net = {external = true;};
services."gameyfin" = {
image = pkgs.callPackage ./images/gameyfin.nix pkgs;
restart = "always";
user = "1000:1000";
env_file = [secrets.gameyfin.path];
environment.GAMEYFIN_USER = "mathis";
volumes = [
"/data/games:/opt/gameyfin-library"
];
expose = ["8080"];
ports = ["8074:8080"];
networks = ["proxy_net"];
};
};
# For accurate stack trace
_file = ./compose.nix;
}