mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-28 06:51:28 +00:00
module: delete NIX_PATH and PYTHONPATH usage
This commit is contained in:
parent
aa4e5a9251
commit
2bbc2be6b5
|
@ -37,7 +37,6 @@ in
|
||||||
systemd.services.selfprivacy-api = {
|
systemd.services.selfprivacy-api = {
|
||||||
description = "API Server used to control system from the mobile application";
|
description = "API Server used to control system from the mobile application";
|
||||||
environment = config.nix.envVars // {
|
environment = config.nix.envVars // {
|
||||||
inherit (config.environment.sessionVariables) NIX_PATH;
|
|
||||||
HOME = "/root";
|
HOME = "/root";
|
||||||
PYTHONUNBUFFERED = "1";
|
PYTHONUNBUFFERED = "1";
|
||||||
ENABLE_SWAGGER = (if cfg.enableSwagger then "1" else "0");
|
ENABLE_SWAGGER = (if cfg.enableSwagger then "1" else "0");
|
||||||
|
@ -71,12 +70,10 @@ in
|
||||||
systemd.services.selfprivacy-api-worker = {
|
systemd.services.selfprivacy-api-worker = {
|
||||||
description = "Task worker for SelfPrivacy API";
|
description = "Task worker for SelfPrivacy API";
|
||||||
environment = config.nix.envVars // {
|
environment = config.nix.envVars // {
|
||||||
inherit (config.environment.sessionVariables) NIX_PATH;
|
|
||||||
HOME = "/root";
|
HOME = "/root";
|
||||||
PYTHONUNBUFFERED = "1";
|
PYTHONUNBUFFERED = "1";
|
||||||
ENABLE_SWAGGER = (if cfg.enableSwagger then "1" else "0");
|
ENABLE_SWAGGER = (if cfg.enableSwagger then "1" else "0");
|
||||||
B2_BUCKET = cfg.b2Bucket;
|
B2_BUCKET = cfg.b2Bucket;
|
||||||
PYTHONPATH = selfprivacy-graphql-api.pythonPath + ":${selfprivacy-graphql-api}/lib/python3.10/site-packages/";
|
|
||||||
} // config.networking.proxy.envVars;
|
} // config.networking.proxy.envVars;
|
||||||
path = [
|
path = [
|
||||||
"/var/"
|
"/var/"
|
||||||
|
|
Loading…
Reference in a new issue