flakes/hosts/hyacinth/networking.nix

20 lines
480 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;
2025-08-21 02:40:27 +10:00
interfaces.enp5s0.wakeOnLan.enable = true;
2023-01-28 00:12:28 +07:00
interfaces.enp5s0.ipv4.addresses = [{
2025-05-24 20:22:32 +10:00
address = "192.168.1.201";
2023-01-28 00:12:28 +07:00
prefixLength = 24;
}];
2025-05-24 20:22:32 +10:00
defaultGateway = "192.168.1.1";
nameservers = [ "8.8.8.8" "8.8.4.4" ];
2023-01-28 00:12:28 +07:00
extraHosts = ''
10.100.0.1 sugarcane
'';
};
}