Move networking stuff to separate file
This commit is contained in:
parent
4011299399
commit
a3123cfdec
2 changed files with 19 additions and 17 deletions
18
machines/aresix/modules/network.nix
Normal file
18
machines/aresix/modules/network.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{...}: {
|
||||
networking = {
|
||||
interfaces = {
|
||||
enp1s0.ipv4.addresses = [
|
||||
{
|
||||
address = "192.168.1.30";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
defaultGateway = {
|
||||
address = "192.168.1.1";
|
||||
interface = "enp1s0";
|
||||
};
|
||||
nameservers = ["1.1.1.1" "8.8.8.8"];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue