1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00
nixos/common/wireguard.nix
Stefan Ellmauthaler 95501e7f77
Add wireguard base config
module provided by Maximilian Marx

Co-authored-by: Maximilian Marx <maximilian.marx@tu-dresden.de>
2022-07-31 11:20:03 +02:00

35 lines
699 B
Nix

{ config, pkgs, lib, ... }:
with lib; {
config.elss.wireguard = {
interfaces = {
stelnet = {
servers = {
metis = {
localIp = "1";
extraIps = [ "142" ];
publicKey = ""; #TODO
endpoint = "metis.ellmauthaler.net:51820"; #TODO
};
};
peers = { # TODO
stel = {
localIp = "142";
publicKey = "6ZwilfrS1J/dMYRnwIMcQ3cW0KtJdLRj5VnSOjwOpn8=";
};
};
prefixes = {
ipv4 = [ ]; # TODO
ipv6 = {
ula = [ ]; # TODO
gua = [ ];
};
serial = "2022073100";
};
};
};
};
}