2022-02-02 00:50:39 +07:00
|
|
|
{ config, ... }: {
|
|
|
|
|
environment.etc."wpa_supplicant.conf".source = config.age.secrets.wpa_conf.path;
|
|
|
|
|
networking = {
|
|
|
|
|
wireless = {
|
|
|
|
|
enable = true;
|
|
|
|
|
interfaces = [ "wlan0" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
useDHCP = false;
|
|
|
|
|
interfaces.wlan0.useDHCP = false;
|
|
|
|
|
|
|
|
|
|
interfaces.wlan0.ipv4.addresses = [{
|
|
|
|
|
address = "192.168.100.15";
|
|
|
|
|
prefixLength = 24;
|
|
|
|
|
}];
|
|
|
|
|
defaultGateway = "192.168.100.1";
|
|
|
|
|
nameservers = [ "8.8.8.8" ];
|
|
|
|
|
|
|
|
|
|
extraHosts = ''
|
2022-02-02 18:07:39 +07:00
|
|
|
192.168.100.12 strawberry
|
2022-02-02 00:50:39 +07:00
|
|
|
192.168.100.13 blossom
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
}
|