haios/modules/nixos/networking/default.nix

32 lines
481 B
Nix
Raw Normal View History

2025-02-17 22:20:10 +02:00
{
lib,
config,
...
}: let
inherit (lib.modules) mkDefault mkForce;
in {
imports = [
2025-02-18 21:31:23 +02:00
./firewall
2025-02-17 22:20:10 +02:00
2025-02-18 21:27:06 +02:00
./ssh.nix
2025-02-17 22:20:10 +02:00
#./tailscale.nix
];
networking = {
hostId = builtins.substring 0 8 (builtins.hashString "md5" config.networking.hostName);
useDHCP = mkForce false;
useNetworkd = mkForce true;
usePredictableInterfaceNames = mkDefault true;
nameservers = [
"1.1.1.1"
"1.0.0.1"
"9.9.9.9"
];
enableIPv6 = true;
};
}