better way to declare hosts

This commit is contained in:
Danilo Reyes 2024-07-06 23:49:53 -06:00
parent c2542bd98b
commit 9419a12823

View File

@ -5,11 +5,11 @@
enableIPv6 = true;
firewall.enable = true;
networkmanager.enable = true;
extraHosts = ''
192.168.1.64 workstation
192.168.1.69 server
192.168.1.100 miniserver
'';
hosts = {
"192.168.1.64" = [ "workstation" ];
"192.168.1.69" = [ "server" ];
"192.168.1.100" = [ "miniserver" ];
};
};
};
}