nyx/modules/nixos/networking/default.nix

20 lines
330 B
Nix
Raw Normal View History

2025-01-12 16:35:44 +00:00
{
lib,
config,
...
}: let
inherit (lib.modules) mkDefault mkForce;
in {
imports = [
];
networking = {
hostId = builtins.substring 0 8 (builtins.hashString "md5" config.networking.hostName);
useDHCP = mkForce false;
useNetworkd = mkForce true;
usePredictableInterfaceNames = mkDefault true;
};
}