-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpacket-2a-1.nix
More file actions
104 lines (104 loc) · 1.92 KB
/
packet-2a-1.nix
File metadata and controls
104 lines (104 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
boot = {
loader = {
grub = {
enable = true;
version = 2;
efiSupport = true;
device = "nodev";
efiInstallAsRemovable = true;
};
efi = {
efiSysMountPoint = "/boot/efi";
};
};
initrd = {
availableKernelModules = [
"ahci"
"pci_thunder_ecam"
];
};
kernelParams = [
"cma=0M"
"biosdevname=0"
"net.ifnames=0"
"console=ttyAMA0,115200"
];
};
networking = {
hostName = "builder-t2a-1";
dhcpcd.enable = false;
defaultGateway = {
address = "147.75.65.53";
interface = "bond0";
};
defaultGateway6 = {
address = "2604:1380:0:d600::";
interface = "bond0";
};
nameservers = [
"147.75.207.207"
"147.75.207.208"
];
bonds = {
bond0 = {
driverOptions = {
mode = "802.3ad";
xmit_hash_policy = "layer3+4";
lacp_rate = "fast";
downdelay = "200";
miimon = "100";
updelay = "200";
};
interfaces = [ "eth0" "eth1" ];
};
};
};
networking.interfaces.bond0 = {
useDHCP = false;
ipv4 = {
routes = [
{
address = "10.0.0.0";
prefixLength = 8;
via = "10.99.98.128";
}
];
addresses = [
{
address = "147.75.65.54";
prefixLength = 30;
}
{
address = "10.99.98.129";
prefixLength = 31;
}
];
};
ipv6 = {
addresses = [
{
address = "2604:1380:0:d600::1";
prefixLength = 127;
}
];
};
};
fileSystems = {
"/" = {
device = "/dev/sda2";
fsType = "ext4";
};
"/boot/efi" = {
device = "/dev/sda1";
fsType = "vfat";
};
};
nix = {
maxJobs = 96;
buildCores = 12;
};
nixpkgs = {
system = "aarch64-linux";
};
}