Initial commit of flake-based NixOS config for the whole haus
This commit is contained in:
33
modules/common/networking.nix
Normal file
33
modules/common/networking.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
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;};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user