diff options
| author | Max Audron <audron@cocaine.farm> | 2023-08-11 16:51:35 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2023-08-11 16:51:35 +0200 |
| commit | 40790797e111cec5ff682806998d50c38ed7bca9 (patch) | |
| tree | 6db95b93f0797a62637845ea4bda5a3eedbc9306 /modules/common/networking.nix | |
| parent | move nixinate to own flake (diff) | |
cleanup modules
Diffstat (limited to 'modules/common/networking.nix')
| -rw-r--r-- | modules/common/networking.nix | 15 |
1 files changed, 15 insertions, 0 deletions
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 + ''; + }; +} |
