33 lines
675 B
Nix
33 lines
675 B
Nix
{
|
|
networking = {
|
|
hostName = "backwards";
|
|
|
|
networkmanager.enable = false;
|
|
wireless.enable = true;
|
|
#wireless.networks are defined in the secret `wpa_supplicant.conf`
|
|
|
|
defaultGateway = "192.168.50.1";
|
|
nameservers = [ "1.1.1.1" ];
|
|
interfaces = {
|
|
wlp1s0 = {
|
|
useDHCP = false;
|
|
ipv4 = {
|
|
addresses = [
|
|
{
|
|
address = "192.168.50.202";
|
|
prefixLength = 24;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
age.secrets = {
|
|
"wpa_supplicant.conf" = {
|
|
file = ../../../../secrets/backwards/wpa_supplicant.conf.age;
|
|
path = "/etc/wpa_supplicant.conf";
|
|
};
|
|
};
|
|
}
|