1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ pkgs, ... }:
{
imports = [
./systemd-networkd.nix
./ppp.nix
./nftables.nix
./dnsmasq.nix
];
boot = {
kernel.sysctl."net.ipv4.ip_forward" = true;
kernel.sysctl."net.ipv6.conf.all.forwarding" = true;
};
environment.systemPackages = with pkgs; [
wireguard-tools
];
services.avahi.allowInterfaces = [ "brlan" ];
networking.useDHCP = false;
}