chore: removed unused wireguard

This commit is contained in:
Patrick 2024-02-09 16:34:44 +01:00
parent 0529b1b20f
commit db3e65ac34
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
4 changed files with 0 additions and 44 deletions

View file

@ -30,7 +30,6 @@
./net.nix
./fs.nix
./wireguard.nix
../../users/patrick
];

View file

@ -1,43 +0,0 @@
{config, ...}: let
address = [
"10.0.0.2/32"
];
peer = {
endpoint = "lel.lol:51820";
publicKey = "t/jR2/0hxBXG0Ytah2w5RQ1gn94k0/Ku9LYcbRR7pXo=";
presharedKeyFile = config.age.secrets.wireguard-pre.path;
};
privateKeyFile = config.age.secrets.wireguard-priv.path;
in {
age.secrets = {
wireguard-pre.rekeyFile = ../../secrets/wireguard/elisabeth-pre.wg.age;
wireguard-priv.rekeyFile = ../../secrets/wireguard/elisabeth-priv.wg.age;
};
networking.wg-quick.interfaces = {
wg-intern = {
inherit address privateKeyFile;
peers = [
(peer
// {
allowedIPs = [
"10.0.0.1/32"
];
})
];
};
wg-all = {
inherit address privateKeyFile;
peers = [
(peer
// {
allowedIPs = [
"0.0.0.0/0"
"::/0"
];
})
];
autostart = false;
};
};
}