forked from hacc/haccfiles
nixda: add wireguard
This commit is contained in:
parent
a9755412cb
commit
32267b084f
1 changed files with 13 additions and 0 deletions
|
@ -28,6 +28,19 @@
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ blackmagicDesktopVideo makemkv ];
|
environment.systemPackages = with pkgs; [ blackmagicDesktopVideo makemkv ];
|
||||||
|
|
||||||
|
networking.wg-quick.interfaces.cornbox = {
|
||||||
|
privateKeyFile = "/etc/wireguard/cornbox.key";
|
||||||
|
address = [ "195.39.247.67/28" "2a0f:4ac0:1337::12/64" ];
|
||||||
|
postUp = "ip link set dev cornbox mtu 1400";
|
||||||
|
peers = [
|
||||||
|
{
|
||||||
|
allowedIPs = [ "2a0f:4ac0:1337::/48" "195.39.247.64/27" ];
|
||||||
|
publicKey = "8IWyiQL3wKP9CD/4UdS9b8mcbL67mkUyeSPORgEPvV0=";
|
||||||
|
endpoint = "cornbox.hetzner.chaoswit.ch:51821";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
|
Loading…
Reference in a new issue