hyacinth/networking: configure for new ethernet

This commit is contained in:
LavaDesu 2024-03-24 14:19:49 +11:00
parent 361aa3cddd
commit 1cf9f6e564
Signed by: cilly
GPG key ID: 6500251E087653C9

View file

@ -1,20 +1,17 @@
{ config, ... }: {
environment.etc."wpa_supplicant.conf".source = config.age.secrets.wpa_conf.path;
networking = {
useDHCP = false;
useDHCP = true;
interfaces.enp5s0.useDHCP = false;
interfaces.enp5s0.ipv4.addresses = [{
address = "192.168.100.16";
address = "192.168.0.151";
prefixLength = 24;
}];
defaultGateway = "192.168.100.1";
nameservers = [ "1.1.1.1" ];
defaultGateway = "192.168.0.1";
nameservers = [ "8.8.8.8" "8.8.4.4" ];
extraHosts = ''
192.168.100.12 strawberry
192.168.100.15 caramel
10.100.0.1 sugarcane
'';
};