treewide: migrate nixos modules to networking.hosts

Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
This commit is contained in:
John Titor
2025-06-04 20:55:03 +05:30
committed by Masum Reza
parent d859e3fcb9
commit cd64f1bd87
4 changed files with 27 additions and 27 deletions

View File

@@ -70,10 +70,12 @@ in
# Rely on GCP's firewall instead
networking.firewall.enable = mkDefault false;
# Configure default metadata hostnames
networking.extraHosts = ''
169.254.169.254 metadata.google.internal metadata
'';
networking.hosts = {
"169.254.169.254" = [
"metadata.google.internal"
"metadata"
];
};
networking.timeServers = [ "metadata.google.internal" ];