refactor: move host-specific modules to hosts/
This commit is contained in:
parent
d859e671f9
commit
de6d9a42b2
5 changed files with 6 additions and 5 deletions
23
hosts/winter/networking.nix
Normal file
23
hosts/winter/networking.nix
Normal 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" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue