diff --git a/nix/modules/customer-portal/flake-module.nix b/nix/modules/customer-portal/flake-module.nix index 592afe1..202eec1 100755 --- a/nix/modules/customer-portal/flake-module.nix +++ b/nix/modules/customer-portal/flake-module.nix @@ -88,13 +88,13 @@ serviceConfig = { ExecStart = utils.escapeSystemdExecArgs [ - "BETTER_AUTH_SECRET='8&!3$!^U!&56qvSydEJ^E$cr^GSBWWFmbHJCLJ@w7vRWm7!R5b$DSoCmY$GW7HEF'" - "SESSION_SECRET='jJBqeVMvQe52HqLYWDunLEKbkkC9JqCrgP92nV5j2dC99eZWCtK9H2NrASH8AbxF'" (lib.getExe cfg.package) "--config" (format.generate "config.json" cfg.settings) ]; + Environment="BETTER_AUTH_SECRET='8&!3$!^U!&56qvSydEJ^E$cr^GSBWWFmbHJCLJ@w7vRWm7!R5b$DSoCmY$GW7HEF' SESSION_SECRET='jJBqeVMvQe52HqLYWDunLEKbkkC9JqCrgP92nV5j2dC99eZWCtK9H2NrASH8AbxF'" + StateDirectory = "amarth-customer-portal"; CacheDirectory = "amarth-customer-portal"; WorkingDirectory = cfg.settings.dataDir; diff --git a/nix/packages/flake-module.nix b/nix/packages/flake-module.nix index a506ae0..db6c6e4 100755 --- a/nix/packages/flake-module.nix +++ b/nix/packages/flake-module.nix @@ -17,9 +17,6 @@ buildPhase = '' runHook preBuild - - # export BETTER_AUTH_SECRET='8&!3$!^U!&56qvSydEJ^E$cr^GSBWWFmbHJCLJ@w7vRWm7!R5b$DSoCmY$GW7HEF' - # export SESSION_SECRET='jJBqeVMvQe52HqLYWDunLEKbkkC9JqCrgP92nV5j2dC99eZWCtK9H2NrASH8AbxF' bun run build --bun bun build --compile --target=bun-linux-x64 --minify --outfile ${pname} ./.output/server/index.mjs