nixos-config/common/networking.nix
Christoph Heiss df9b15996d
machines: Add 'name'
Runs blocky + unbound for custom DNS.
Also adds all the common nix infrastructure needed.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-04-01 22:20:34 +02:00

16 lines
284 B
Nix

{ lib, ... }:
{
networking = {
usePredictableInterfaceNames = lib.mkDefault true;
nameservers = lib.mkDefault [ "9.9.9.9" ];
domain = "c8h4.io";
search = [ "c8h4.io" ];
};
networking.firewall = {
allowPing = true;
logRefusedConnections = false;
};
}