os/hosts/stroopwafel/networking.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
820 B
Nix
Raw Normal View History

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 = {
ownIPs = [
"10.13.12.8/32"
"fd00:b12f:acab:1312:acab:8::/96"
];
2024-02-12 15:46:46 +00:00
privateKeyFile = config.age.secrets.wg-private-key.path;
};
age.secrets.wg-tunnel-key.file = "${flake.self}/secrets/wg-tunnel-stroopwafel.age";
2024-02-12 15:46:46 +00:00
pub-solar.wireguard.tunnel = {
2024-02-12 15:46:46 +00:00
ownIPs = [
"10.65.141.174/32"
"fc00:bbbb:bbbb:bb01::2:8dad/128"
2024-02-12 15:46:46 +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 22:53:36 +00:00
}