1
0
Fork 0

fix(ente-auth): remove build flag from ente-web-auth package

Move the build flag from the package to the module, that way everyone
can just define their own URL in the module.
This commit is contained in:
Philipp 2025-05-31 17:54:25 +02:00
parent 3ed788ba26
commit a044d5707a
Signed by: Philipp
GPG key ID: 9EBD8439AFBAB750
2 changed files with 9 additions and 2 deletions

View file

@ -9,6 +9,14 @@ with lib;
with lib.${namespace}; with lib.${namespace};
let let
cfg = config.${namespace}.services.ente-auth; cfg = config.${namespace}.services.ente-auth;
enteApp =
cfg.package.override {
extraBuildEnv = {
NEXT_PUBLIC_ENTE_ENDPOINT = "https://ente-api.monapona.dev";
NEXT_TELEMETRY_DISABLED = "1";
};
};
in in
{ {
options.${namespace}.services.ente-auth = { options.${namespace}.services.ente-auth = {
@ -49,7 +57,7 @@ in
forceSSL = true; forceSSL = true;
useACMEHost = "stahl.sh"; useACMEHost = "stahl.sh";
locations."/" = { locations."/" = {
root = "${cfg.package}"; root = enteApp;
}; };
}; };
}; };

View file

@ -39,7 +39,6 @@ stdenv.mkDerivation (finalAttrs: {
env = extraBuildEnv; env = extraBuildEnv;
buildPhase = '' buildPhase = ''
export NEXT_PUBLIC_ENTE_ENDPOINT=https://ente-api.monapona.dev
yarn build:auth yarn build:auth
''; '';