2022-08-21 22:53:04 +00:00
|
|
|
{
|
2023-02-25 13:45:21 +00:00
|
|
|
self,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2022-08-21 22:53:04 +00:00
|
|
|
config = {
|
|
|
|
age.secrets.home_controller_wireguard.file = "${self}/secrets/home_controller_giggles_wireguard_key.age";
|
|
|
|
|
|
|
|
pub-solar.home-controller = {
|
|
|
|
enable = true;
|
|
|
|
role = "server";
|
|
|
|
ownIp = "10.0.1.11";
|
|
|
|
|
|
|
|
k3s = {
|
|
|
|
enableLocalStorage = true;
|
|
|
|
enableZfs = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
wireguard = {
|
|
|
|
privateKeyFile = "/run/agenix/home_controller_wireguard";
|
|
|
|
peers = [
|
|
|
|
{
|
2023-02-25 13:45:21 +00:00
|
|
|
# chonk
|
|
|
|
publicKey = "t1DS0y6eVzyGwomKAEWTWVsHK3xB7M/fNQ3wLgE3+B8=";
|
|
|
|
allowedIPs = ["10.0.1.6/32"];
|
2022-08-21 22:53:04 +00:00
|
|
|
endpoint = "data.gssws.de:51899";
|
|
|
|
persistentKeepalive = 25;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
# cox
|
|
|
|
publicKey = "VogQYYYNdXLhPKY9/P2WAn6gfEX9ojN3VD+DKx4gl0k=";
|
2023-02-25 13:45:21 +00:00
|
|
|
allowedIPs = ["10.0.1.12/32"];
|
2022-08-21 22:53:04 +00:00
|
|
|
endpoint = "cox.local:51899";
|
|
|
|
persistentKeepalive = 25;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
# companion
|
|
|
|
publicKey = "7EUcSUckw/eLiWFHD+AzfcoKWstjr+cL70SupOJ6zC0=";
|
2023-02-25 13:45:21 +00:00
|
|
|
allowedIPs = ["10.0.1.13/32"];
|
2022-08-21 22:53:04 +00:00
|
|
|
endpoint = "companion.local:51899";
|
|
|
|
persistentKeepalive = 25;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
# ringo
|
|
|
|
publicKey = "n4fGufXDjHitgS2HqVjKRdSNw+co1rYEV1Sw+sCCVzw=";
|
2023-02-25 13:45:21 +00:00
|
|
|
allowedIPs = ["10.0.1.21/32"];
|
2022-08-21 22:53:04 +00:00
|
|
|
endpoint = "ringo.local:51899";
|
|
|
|
persistentKeepalive = 25;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|