feat: nixcloud config
This commit is contained in:
parent
634d7eb2e8
commit
959af7690d
12 changed files with 113 additions and 152 deletions
54
hosts/Nixcloud/networking.nix
Normal file
54
hosts/Nixcloud/networking.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
networking = {
|
||||
nameservers = [
|
||||
"45.143.83.10"
|
||||
"1.1.1.1"
|
||||
"8.8.4.4"
|
||||
];
|
||||
defaultGateway = "72.61.129.254";
|
||||
defaultGateway6 = {
|
||||
address = "2a02:4780:66::1";
|
||||
interface = "eth0";
|
||||
};
|
||||
dhcpcd.enable = false;
|
||||
usePredictableInterfaceNames = lib.mkForce false;
|
||||
interfaces = {
|
||||
eth0 = {
|
||||
ipv4.addresses = [
|
||||
{
|
||||
address = "72.61.129.56";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
ipv6.addresses = [
|
||||
{
|
||||
address = "2a02:4780:66:9ac0::1";
|
||||
prefixLength = 48;
|
||||
}
|
||||
{
|
||||
address = "fe80::9ce8:d4ff:feb5:50d7";
|
||||
prefixLength = 64;
|
||||
}
|
||||
];
|
||||
ipv4.routes = [
|
||||
{
|
||||
address = "72.61.129.254";
|
||||
prefixLength = 32;
|
||||
}
|
||||
];
|
||||
ipv6.routes = [
|
||||
{
|
||||
address = "2a02:4780:66::1";
|
||||
prefixLength = 128;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
services.udev.extraRules = ''
|
||||
ATTR{address}=="9e:e8:d4:b5:50:d7", NAME="eth0"
|
||||
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue