From 005337d8d6fcf0bb917fe6653c15bd4556ced2df Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Mon, 26 Jul 2021 13:13:25 +0300 Subject: [PATCH] Major fixes to server networking --- nixos-infect | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nixos-infect b/nixos-infect index 382b12b..90c3bd0 100644 --- a/nixos-infect +++ b/nixos-infect @@ -69,6 +69,7 @@ makeConf() { allowedTCPPorts = lib.mkForce [ 22 25 80 143 443 465 587 993 8443 ]; allowedUDPPorts = lib.mkForce [ 8443 ]; }; + nameservers = [ "1.1.1.1" "1.0.0.1" ]; }; time.timeZone = "Europe/Uzhgorod"; i18n.defaultLocale = "en_GB.UTF-8"; @@ -710,9 +711,11 @@ in systemd.services.selfprivacy-api = { description = "API Server used to control system from the mobile application"; - environment = { + environment = config.nix.envVars // { + inherit (config.environment.sessionVariables) NIX_PATH; + HOME = "/root"; PYTHONUNBUFFERED = "1"; - }; + } // config.networking.proxy.envVars; path = [ "/var/" "/var/dkim/" pkgs.coreutils pkgs.gnutar pkgs.xz.bin pkgs.gzip pkgs.gitMinimal config.nix.package.out pkgs.nixos-rebuild ]; after = [ "network-online.target" ]; wantedBy = [ "network-online.target" ];