networking: rename to host-specific module

This commit is contained in:
LavaDesu 2021-08-21 17:48:13 +07:00
parent 29aac7e6e5
commit d859e671f9
Signed by: cilly
GPG key ID: 6500251E087653C9
2 changed files with 23 additions and 21 deletions

View file

@ -0,0 +1,23 @@
{ config, ... }: {
networking = {
wireless = {
enable = true;
interfaces = [ "wlp3s0" ];
};
useDHCP = false;
interfaces.eno1.useDHCP = false;
interfaces.wlp3s0.useDHCP = false;
interfaces.eno1.ipv4.addresses = [{
address = "10.0.0.2";
prefixLength = 24;
}];
interfaces.wlp3s0.ipv4.addresses = [{
address = "192.168.100.13";
prefixLength = 24;
}];
defaultGateway = "192.168.100.1";
nameservers = [ "192.168.100.11" ];
};
}