3 with (import networking/names-and-numbers.nix);
7 networking/ethernet.nix
10 networking/nftables.nix
11 ../../nixos/profiles/dnscrypt-proxy2.nix
12 ../../nixos/profiles/wireguard/wg-intra.nix
13 ../../nixos/profiles/networking/ssh.nix
15 install.substituteOnDestination = false;
16 networking.domain = "wg";
17 networking.useDHCP = false;
19 boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
20 networking.nftables.ruleset = mkAfter ''
22 chain forward-to-net {
23 #jump forward-connectivity
26 chain forward-from-net {
27 ct state { established, related } accept
28 log level warn prefix "forward-from-net: " counter drop
31 log level warn prefix "forward: " counter drop
36 services.avahi.enable = true;
37 services.avahi.openFirewall = true;
38 services.avahi.publish.enable = true;
39 # WARNING: settings.listen_addresses are not merged...
40 # hence there all defined here.
41 services.dnscrypt-proxy2.settings.listen_addresses = [
50 networking.wireguard.wg-intra.peers = {
52 losurdo.enable = true;