23 lines
579 B
Nix
23 lines
579 B
Nix
|
{ config, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
wireguard-tools
|
||
|
];
|
||
|
|
||
|
networking.wireguard.enable = true;
|
||
|
networking.wireguard.interfaces = {
|
||
|
freyanet = {
|
||
|
ips = [ "10.2.0.2/32" "fd:cafe:dead:bee::2/128" "fe80::2/128" ];
|
||
|
privateKeyFile = "${config.dotfilesPath}/secrets/freyanet.key";
|
||
|
|
||
|
peers = [{
|
||
|
publicKey = "x0ykwakpYCvI/pG+nR83lNUyeOE9m54thnX3bvZ+FUk=";
|
||
|
allowedIPs = [ "10.0.0.0/12" "fd:cafe::/32" "fe80::/64" ];
|
||
|
endpoint = "freya.cat:41111";
|
||
|
persistentKeepalive = 25;
|
||
|
}];
|
||
|
};
|
||
|
};
|
||
|
}
|