Major fixes to server networking

development
Illia Chub 2021-07-26 13:13:25 +03:00
parent b62159d77a
commit 005337d8d6
1 changed files with 5 additions and 2 deletions

View File

@ -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" ];