4 ../../nixos/profiles/dnscrypt-proxy2.nix
5 ../../nixos/profiles/wireguard/wg-intra.nix
6 ../../nixos/profiles/networking/ssh.nix
7 ../../nixos/profiles/networking/wifi.nix
9 networking/nftables.nix
11 install.substituteOnDestination = false;
12 #networking.domain = "wg";
13 networking.useDHCP = false;
15 networking.nftables.ruleset = lib.mkAfter ''
21 ip daddr 10.0.0.0/8 counter goto output-lan
22 ip daddr 172.16.0.0/12 counter goto output-lan
23 ip daddr 192.168.0.0/16 counter goto output-lan
24 ip daddr 224.0.0.0/3 counter goto output-lan
26 log level warn prefix "output-net: " counter drop
31 networking.interfaces = { };
33 networking.networkmanager = {
39 services.avahi.enable = true;
40 services.avahi.openFirewall = false;
41 services.avahi.publish.enable = false;
43 services.openssh.settings.X11Forwarding = true;
44 systemd.services.sshd.serviceConfig.LoadCredentialEncrypted = [
45 "host.key:${ssh/host.key.cred}"
48 services.vnstat.enable = true;