diff --git a/nix/module.nix b/nix/module.nix index d759468..a3b386e 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -179,20 +179,6 @@ in user = cfg.user; group = cfg.group; phpPackage = cfg.backendPackage.passthru.php; - phpEnv = { - APP_ENV = "production"; - APP_DEBUG = "false"; - APP_URL = "https://${cfg.apiDomain}"; - LOG_CHANNEL = "stderr"; - DB_CONNECTION = "pgsql"; - DB_HOST = "/run/postgresql"; - DB_PORT = "5432"; - DB_DATABASE = cfg.database.name; - DB_USERNAME = cfg.database.user; - SESSION_DRIVER = "database"; - CACHE_STORE = "database"; - QUEUE_CONNECTION = "database"; - }; settings = { "listen.owner" = config.services.nginx.user; "listen.group" = config.services.nginx.group; @@ -244,16 +230,6 @@ in EnvironmentFile = cfg.secretsFile; WorkingDirectory = appRoot; }; - environment = { - APP_ENV = "production"; - APP_DEBUG = "false"; - APP_URL = "https://${cfg.apiDomain}"; - DB_CONNECTION = "pgsql"; - DB_HOST = "/run/postgresql"; - DB_PORT = "5432"; - DB_DATABASE = cfg.database.name; - DB_USERNAME = cfg.database.user; - }; script = '' ${cfg.backendPackage.passthru.php}/bin/php artisan migrate --force --no-interaction ${cfg.backendPackage.passthru.php}/bin/php artisan storage:link --force || true