blob: dc261cd8c1566ad5d4afa2bebcd7dcf33905837e (
plain)
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
|
{config, ...}: {
system.stateVersion = "25.11";
deploy = {
enable = true;
#ssh.host = "zd-one0";
ssh.host = "one0nix";
};
cynerd = {
openwrtone = true;
switch = {
enable = true;
lanAddress = "${config.cynerd.hosts.zd.one0nix}/24";
lanGateway = config.cynerd.hosts.zd.mox;
};
wifiAP.zd = {
enable = false;
wlan0 = {
bssids = [
"20:05:b7:00:4c:02"
"20:05:b7:04:4c:02"
"20:05:b7:08:4c:02"
];
channel = 7;
};
};
};
boot.initrd.availableKernelModules = ["dm-mod"];
boot.consoleLogLevel = 7;
services = {
journald.settings.Journal = {
SystemMaxUse = "32G";
};
btrfs.autoScrub = {
enable = true;
fileSystems = ["/"];
};
fail2ban = {
enable = true;
ignoreIP = ["10.8.0.0/24" "10.8.1.0/24" "10.8.2.0/24"];
};
};
networking = {
useNetworkd = true;
useDHCP = false;
};
systemd.network.networks = {
"lan-brlan" = {
matchConfig.Name = "end*";
networkConfig.Bridge = "brlan";
bridgeVLANs = [
{
EgressUntagged = 1;
PVID = 1;
}
{VLAN = 2;}
];
};
};
}
|