apricot: init
This commit is contained in:
parent
a6a5c2cbca
commit
2917dcbe3b
5 changed files with 92 additions and 0 deletions
23
hosts/apricot/networking.nix
Normal file
23
hosts/apricot/networking.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ config, ... }: {
|
||||
networking = {
|
||||
wireless = {
|
||||
enable = true;
|
||||
interfaces = [ "wlp1s0" ];
|
||||
};
|
||||
|
||||
useDHCP = false;
|
||||
interfaces.enp2s0.useDHCP = false;
|
||||
interfaces.wlp1s0.useDHCP = false;
|
||||
|
||||
interfaces.enp2s0.ipv4.addresses = [{
|
||||
address = "10.0.0.1";
|
||||
prefixLength = 24;
|
||||
}];
|
||||
interfaces.wlp1s0.ipv4.addresses = [{
|
||||
address = "192.168.100.14";
|
||||
prefixLength = 24;
|
||||
}];
|
||||
defaultGateway = "192.168.100.1";
|
||||
nameservers = [ "8.8.8.8" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue