Break networking out to its own file.
This makes it easier to figure out what needs review and changing Also switch to the latest detected hardware state.
This commit is contained in:
parent
122554c4aa
commit
bbc2bbb5e1
4 changed files with 54 additions and 24 deletions
25
nixos-anywhere/nocix/network.nix
Normal file
25
nixos-anywhere/nocix/network.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
networking = {
|
||||
defaultGateway = {
|
||||
address = "63.141.227.153";
|
||||
interface = "enp3s0";
|
||||
};
|
||||
defaultGateway6 = {
|
||||
address = "2604:4300:a:88::1";
|
||||
interface = "enp3s0";
|
||||
};
|
||||
interfaces.enp2s0 = {
|
||||
ipv4.addresses = [{
|
||||
address = "63.141.227.154";
|
||||
prefixLength = 29;
|
||||
}];
|
||||
ipv6.addresses = [{
|
||||
address = "2604:4300:a:88::2";
|
||||
prefixLength = 64;
|
||||
}];
|
||||
};
|
||||
nameservers = ["8.8.8.8"];
|
||||
search = ["nocix.net"];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue