nixos-configs/configurations/nos/modules/docker/gameyfin/compose.nix
matt1432 6ca0d7248b
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: rename some flake attr directories
2024-12-16 15:51:41 -05:00

28 lines
551 B
Nix

{
config,
pkgs,
...
}: let
inherit (config.sops) secrets;
in {
khepri.compositions."gameyfin" = {
networks.proxy_net = {external = true;};
services."gameyfin" = {
image = import ./images/gameyfin.nix pkgs;
restart = "always";
user = "1000:1000";
environmentFiles = [secrets.gameyfin.path];
environment.GAMEYFIN_USER = "mathis";
volumes = [
"/data/games:/opt/gameyfin-library"
];
expose = ["8080"];
ports = ["8074:8080"];
networks = ["proxy_net"];
};
};
}