From 40790797e111cec5ff682806998d50c38ed7bca9 Mon Sep 17 00:00:00 2001 From: Max Audron Date: Fri, 11 Aug 2023 16:51:35 +0200 Subject: cleanup modules --- modules/common/networking.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 modules/common/networking.nix (limited to 'modules/common/networking.nix') diff --git a/modules/common/networking.nix b/modules/common/networking.nix new file mode 100644 index 0000000..0f9aaca --- /dev/null +++ b/modules/common/networking.nix @@ -0,0 +1,15 @@ +{ config, lib, pkgs, ... }: + +{ + networking = { + usePredictableInterfaceNames = false; + enableIPv6 = true; + tempAddresses = "disabled"; + interfaces.eth0.useDHCP = true; + nameservers = [ "1.1.1.1" "8.8.8.8" ]; + + dhcpcd.extraConfig = '' + nohook resolv.conf + ''; + }; +} -- cgit v1.2.3