1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00
nixos/common/wireguard.nix

35 lines
753 B
Nix

{ config, pkgs, lib, ... }:
with lib; {
config.elss.wireguard = {
interfaces = {
stelnet = {
servers = {
metis = {
localIp = "1";
extraIps = [ "1" "142" ];
publicKey = "wP49t1TYXI3ucsYb8RavNGwIf+8nx5UBgDU0PM9VlnI=";
endpoint = "metis.ellmauthaler.net:51820"; #TODO
};
};
peers = { # TODO
stelphone = {
localIp = "142";
publicKey = "UnS5BtlKKTXfNaSsw2PY7Gbd5aLGiJVlCUY7bHosLio=";
};
};
prefixes = {
ipv4 = [ "192.168.244" ];
ipv6 = {
ula = [ ]; # TODO
gua = [ ];
};
serial = "2022073100";
};
};
};
};
}