Files
nixos-haus/modules/common/networking.nix
2025-08-14 17:19:36 +03:00

39 lines
959 B
Nix

{ config, pkgs, ... }: {
networking.networkmanager.enable = true;
time.timeZone = "Europe/Bucharest";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "ro_RO.UTF-8";
LC_IDENTIFICATION = "ro_RO.UTF-8";
LC_MEASUREMENT = "ro_RO.UTF-8";
LC_MONETARY = "ro_RO.UTF-8";
LC_NAME = "ro_RO.UTF-8";
LC_NUMERIC = "ro_RO.UTF-8";
LC_PAPER = "ro_RO.UTF-8";
LC_TELEPHONE = "ro_RO.UTF-8";
LC_TIME = "ro_RO.UTF-8";
};
environment.systemPackages = with pkgs; [ torsocks ];
# 9050,9063,8118(HTTP)
services.tor = {
enable = true;
client.enable = true;
openFirewall = true;
settings = { ControlPort = 9051; };
};
security.pki.certificates = [ "/home/user/.config/bigbox.local.crt" ];
networking.extraHosts = "";
services.chrony = {
enable = true;
enableNTS = true;
servers =
[ "nts.teambelgium.net" "ptbtime1.ptb.de" "paris.time.system76.com" ];
};
}