19 lines
389 B
Nix
19 lines
389 B
Nix
{ ... } : {
|
|
networking.wg-quick.interfaces.wg0 = {
|
|
address = [ "10.1.10.2/24" ];
|
|
|
|
privateKey = "2IzITd4epbSgALua8DKX2UC151o6F6q7l6J9/Ib+znk=";
|
|
|
|
peers = [
|
|
{
|
|
publicKey = "meFmsUmqtLtaexVpWvWWWXnKiUarSahZD75lZONJVUE=";
|
|
|
|
allowedIPs = [ "10.1.10.0/24" ];
|
|
|
|
endpoint = "127.0.0.1:51821";
|
|
|
|
persistentKeepalive = 60;
|
|
}
|
|
];
|
|
};
|
|
} |