1 { pkgs, lib, config, inputs, hostName, hosts, ... }:
3 domain = "sourcephile.fr";
4 iface = config.services.nebula.networks.${domain}.tun.device;
5 aubergine = import ../aubergine/networking/names-and-numbers.nix;
9 ../../share/nebula/sourcephile.fr.nix
11 services.nebula.networks.${domain} = {
15 { port = "any"; proto = "any"; groups = [ "sourcephile" "intra" ]; }
18 { port = "any"; proto = "any"; host = "any"; }
22 # Speed up discovering of aubergine at startup
23 "10.0.0.8" = [ "${aubergine.wifiIPv4}.1:${toString hosts.aubergine.config.services.nebula.networks.${domain}.listen.port}" ];
32 networking.nftables.ruleset = ''
34 chain input-${iface} {
36 chain output-${iface} {
37 tcp dport 9091 counter accept comment "Transmission RPC"