Files
nixos-at-home/modules/common/networking.nix
2026-05-31 10:56:54 +01:00

16 lines
344 B
Nix

{ config, lib, pkgs, ... }:
{
time.timeZone = "Europe/London";
i18n.defaultLocale = "en_US.UTF-8";
console.keyMap = "uk";
networking = {
firewall.enable = true;
firewall.allowedTCPPorts = [ 22 ]; # SSH
hostName = config.networking.hostName or "nixos";
useDHCP = false;
usePredictableInterfaceNames = false;
};
}