2024-01-27 22:53:36 +00:00
|
|
|
{
|
|
|
|
flake,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
networking.hostName = "stroopwafel";
|
|
|
|
networking.networkmanager.wifi.backend = "wpa_supplicant";
|
|
|
|
|
|
|
|
age.secrets.wg-private-key.file = "${flake.self}/secrets/wg-private-stroopwafel.age";
|
|
|
|
|
2024-02-12 15:46:46 +00:00
|
|
|
pub-solar.wireguard.private = {
|
2024-01-27 23:02:58 +00:00
|
|
|
ownIPs = [
|
2024-02-08 18:23:22 +00:00
|
|
|
"10.13.12.8/32"
|
2024-01-27 23:02:58 +00:00
|
|
|
"fd00:b12f:acab:1312:acab:8::/96"
|
|
|
|
];
|
2024-02-12 15:46:46 +00:00
|
|
|
privateKeyFile = config.age.secrets.wg-private-key.path;
|
|
|
|
};
|
|
|
|
|
2024-02-12 23:27:30 +00:00
|
|
|
age.secrets.wg-tunnel-key.file = "${flake.self}/secrets/wg-tunnel-stroopwafel.age";
|
2024-02-12 15:46:46 +00:00
|
|
|
|
2024-02-12 23:27:30 +00:00
|
|
|
pub-solar.wireguard.tunnel = {
|
2024-02-12 15:46:46 +00:00
|
|
|
ownIPs = [
|
2024-02-12 23:27:30 +00:00
|
|
|
"10.65.141.174/32"
|
|
|
|
"fc00:bbbb:bbbb:bb01::2:8dad/128"
|
2024-02-12 15:46:46 +00:00
|
|
|
];
|
2024-02-12 23:27:30 +00:00
|
|
|
privateKeyFile = config.age.secrets.wg-tunnel-key.path;
|
2024-02-12 15:46:46 +00:00
|
|
|
peer = {
|
|
|
|
publicKey = "5FZW+fNA2iVBSY99HFl+KjGc9AFVNE+UFAedLNhu8lc=";
|
|
|
|
endpoint = "146.70.134.2:3565";
|
|
|
|
};
|
2024-01-27 23:02:58 +00:00
|
|
|
};
|
2024-01-27 22:53:36 +00:00
|
|
|
}
|