1 { pkgs, lib, config, hostName, private, ... }:
3 networking.wireguard.wg-intra.peers.mermet.enable = true;
4 networking.wireguard.wg-intra.peers.losurdo.enable = true;
5 networking.hosts."192.168.42.2" = [
7 "builds.sourcephile.wg"
8 "dispatch.sourcephile.wg"
12 "lists.sourcephile.wg"
15 "pages.sourcephile.wg"
16 "paste.sourcephile.wg"
23 after = ["wireguard-${iface}.service"];
24 serviceConfig.Restart = "on-failure";
27 services.openssh.listenAddresses = map (ip: {addr=lib.removeSuffix "/32" ip;}) peer.allowedIPs;