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/networking/ssh.nix
14 install.substituteOnDestination = false;
15 networking.domain = "sp";
16 networking.useDHCP = false;
18 boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
19 networking.nftables.ruleset = mkAfter ''
21 chain forward-to-lan {
22 #jump forward-connectivity
25 chain forward-to-net {
26 #jump forward-connectivity
29 chain forward-from-net {
30 ct state { established, related } accept
31 log level warn prefix "forward-from-net: " counter drop
34 log level warn prefix "forward: " counter drop
39 networking.networkmanager.enable = true;
53 # WARNING: settings.listen_addresses are not merged...
54 # hence there all defined here.
55 services.dnscrypt-proxy2.settings.listen_addresses = [
64 services.openssh.settings.X11Forwarding = true;
66 services.vnstat.enable = true;
68 systemd.services.sshd.serviceConfig.LoadCredentialEncrypted = [
69 "host.key:${ssh/host.key.cred}"