flakes/hosts/hyacinth/networking.nix

19 lines
433 B
Nix
Raw Permalink Normal View History

2023-01-28 00:12:28 +07:00
{ config, ... }: {
environment.etc."wpa_supplicant.conf".source = config.age.secrets.wpa_conf.path;
networking = {
useDHCP = true;
2023-01-28 00:12:28 +07:00
interfaces.enp5s0.useDHCP = false;
interfaces.enp5s0.ipv4.addresses = [{
address = "192.168.0.151";
2023-01-28 00:12:28 +07:00
prefixLength = 24;
}];
defaultGateway = "192.168.0.1";
nameservers = [ "8.8.8.8" "8.8.4.4" ];
2023-01-28 00:12:28 +07:00
extraHosts = ''
10.100.0.1 sugarcane
'';
};
}