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