2023-10-19 18:55:56 +00:00
|
|
|
{
|
|
|
|
flake,
|
|
|
|
config,
|
|
|
|
pkgs,
|
2023-11-08 17:52:09 +00:00
|
|
|
lib,
|
2023-10-19 18:55:56 +00:00
|
|
|
...
|
|
|
|
}: {
|
2024-01-29 22:03:27 +00:00
|
|
|
networking.hostName = "chocolatebar";
|
2023-10-19 18:55:56 +00:00
|
|
|
|
2024-01-29 22:03:27 +00:00
|
|
|
age.secrets.wg-private-key.file = "${flake.self}/secrets/wg-private-chocolatebar.age";
|
|
|
|
|
2024-02-12 15:46:46 +00:00
|
|
|
pub-solar.wireguard.private = {
|
2024-01-29 22:03:27 +00:00
|
|
|
ownIPs = [
|
2024-02-08 18:23:22 +00:00
|
|
|
"10.13.12.5/32"
|
2024-01-29 22:03:27 +00:00
|
|
|
"fd00:b12f:acab:1312:acab:5::/96"
|
|
|
|
];
|
2024-02-12 15:46:46 +00:00
|
|
|
privateKeyFile = config.age.secrets.wg-private-key.path;
|
2023-10-19 18:55:56 +00:00
|
|
|
};
|
2024-12-10 11:44:57 +00:00
|
|
|
|
|
|
|
age.secrets.wg-pub-solar-key.file = "${flake.self}/secrets/wg-pub-solar-chocolatebar.age";
|
|
|
|
|
|
|
|
pub-solar.wireguard.pub-solar = {
|
|
|
|
ownIPs = [
|
|
|
|
"10.7.6.205/32"
|
|
|
|
"fd00:fae:fae:fae:fae:205::/96"
|
|
|
|
];
|
|
|
|
privateKeyFile = config.age.secrets.wg-pub-solar-key.path;
|
|
|
|
};
|
|
|
|
|
|
|
|
age.secrets.wg-momo-key.file = "${flake.self}/secrets/wg-momo-chocolatebar.age";
|
|
|
|
|
|
|
|
pub-solar.wireguard.momo = {
|
|
|
|
ownIPs = [
|
|
|
|
"10.30.30.205/32"
|
|
|
|
"fd00:3030:3030:3030:3030:205::/96"
|
|
|
|
];
|
|
|
|
privateKeyFile = config.age.secrets.wg-momo-key.path;
|
|
|
|
};
|
|
|
|
|
|
|
|
age.secrets.wg-ehex-key.file = "${flake.self}/secrets/wg-ehex-chocolatebar.age";
|
|
|
|
|
|
|
|
pub-solar.wireguard.ehex = {
|
|
|
|
ownIPs = [
|
|
|
|
"10.42.0.160/22"
|
|
|
|
];
|
|
|
|
privateKeyFile = config.age.secrets.wg-ehex-key.path;
|
|
|
|
};
|
2023-10-19 18:55:56 +00:00
|
|
|
}
|