networking: init

This commit is contained in:
blahai 2025-02-17 22:20:10 +02:00
parent 29612baa12
commit 3a57a0dee7
Signed by: blahai
SSH key fingerprint: SHA256:ZfCryi+V64yG+vC1ZIIsqgvBCmA31tTi7RJ6M8CvpRc
2 changed files with 32 additions and 0 deletions

View file

@ -3,6 +3,7 @@
./boot ./boot
./hardware ./hardware
./misc ./misc
./networking
./remote-modules.nix ./remote-modules.nix
]; ];

View file

@ -0,0 +1,31 @@
{
lib,
config,
...
}: let
inherit (lib.modules) mkDefault mkForce;
in {
imports = [
#./firewall
#./ssh.nix
#./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;
};
}