os/hosts/stroopwafel/networking.nix

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

64 lines
1.5 KiB
Nix
Raw Normal View History

2024-01-27 22:53:36 +00:00
{
flake,
config,
pkgs,
lib,
...
}: {
networking.hostName = "stroopwafel";
networking.wireless.iwd.enable = true;
2024-01-27 22:53:36 +00:00
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";
};
};
age.secrets.wg-pub-solar-key.file = "${flake.self}/secrets/wg-pub-solar-stroopwafel.age";
pub-solar.wireguard.pub-solar = {
ownIPs = [
"10.7.6.200/32"
"fd00:fae:fae:fae:fae:200::/96"
];
privateKeyFile = config.age.secrets.wg-pub-solar-key.path;
};
2024-06-11 12:57:33 +00:00
2024-09-13 13:45:20 +00:00
age.secrets.wg-momo-key.file = "${flake.self}/secrets/wg-momo-stroopwafel.age";
pub-solar.wireguard.momo = {
ownIPs = [
"10.30.30.200/32"
"fd00:3030:3030:3030:3030:200::/96"
];
privateKeyFile = config.age.secrets.wg-momo-key.path;
};
2024-06-11 12:57:33 +00:00
age.secrets.wg-ehex-key.file = "${flake.self}/secrets/wg-ehex-stroopwafel.age";
pub-solar.wireguard.ehex = {
ownIPs = [
2024-08-18 22:22:59 +00:00
"10.42.0.135/22"
2024-06-11 12:57:33 +00:00
];
privateKeyFile = config.age.secrets.wg-ehex-key.path;
};
2024-01-27 22:53:36 +00:00
}