Files
nixos-haus/modules/common/networking.nix
2025-08-10 00:47:18 +03:00

42 lines
1016 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.crt" ];
networking.extraHosts = ''
192.168.0.101 box.local
192.168.0.100 puter.local
'';
services.chrony = {
enable = true;
enableNTS = true;
servers =
[ "nts.teambelgium.net" "ptbtime1.ptb.de" "paris.time.system76.com" ];
};
}