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 services.dnscrypt-proxy2.settings.listen_addresses = [
44 networking.wireguard.wg-intra.peers = {
46 losurdo.enable = true;