From 2bbc2be6b57f05a159db1f175e8fa84d67eac8da Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Wed, 22 Nov 2023 22:51:55 +0400 Subject: [PATCH] module: delete NIX_PATH and PYTHONPATH usage --- nixos/module.nix | 3 --- 1 file changed, 3 deletions(-) diff --git a/nixos/module.nix b/nixos/module.nix index a286ad2..90fff8b 100644 --- a/nixos/module.nix +++ b/nixos/module.nix @@ -37,7 +37,6 @@ in systemd.services.selfprivacy-api = { description = "API Server used to control system from the mobile application"; environment = config.nix.envVars // { - inherit (config.environment.sessionVariables) NIX_PATH; HOME = "/root"; PYTHONUNBUFFERED = "1"; ENABLE_SWAGGER = (if cfg.enableSwagger then "1" else "0"); @@ -71,12 +70,10 @@ in systemd.services.selfprivacy-api-worker = { description = "Task worker for SelfPrivacy API"; environment = config.nix.envVars // { - inherit (config.environment.sessionVariables) NIX_PATH; HOME = "/root"; PYTHONUNBUFFERED = "1"; ENABLE_SWAGGER = (if cfg.enableSwagger then "1" else "0"); B2_BUCKET = cfg.b2Bucket; - PYTHONPATH = selfprivacy-graphql-api.pythonPath + ":${selfprivacy-graphql-api}/lib/python3.10/site-packages/"; } // config.networking.proxy.envVars; path = [ "/var/"