56 lines
1.6 KiB
Nix
56 lines
1.6 KiB
Nix
|
{ self, config, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
config = {
|
||
|
age.secrets.home_controller_k3s_token.file = "${self}/secrets/home_controller_k3s_server_token.age";
|
||
|
age.secrets.home_controller_wireguard.file = "${self}/secrets/home_controller_cox_wireguard_key.age";
|
||
|
|
||
|
pub-solar.home-controller = {
|
||
|
enable = true;
|
||
|
role = "server";
|
||
|
ownIp = "10.0.1.12";
|
||
|
|
||
|
k3s = {
|
||
|
serverAddr = "https://api.kube:6443";
|
||
|
tokenFile = "/run/agenix/home_controller_k3s_token";
|
||
|
enableLocalStorage = true;
|
||
|
enableZfs = true;
|
||
|
};
|
||
|
|
||
|
wireguard = {
|
||
|
privateKeyFile = "/run/agenix/home_controller_wireguard";
|
||
|
peers = [
|
||
|
{
|
||
|
# cube
|
||
|
publicKey = "UVzVK5FwXW/AGNVipudUDT43NgCiNpsunzkzjpTvVnk=";
|
||
|
allowedIPs = [ "10.0.1.5/32" ];
|
||
|
endpoint = "data.gssws.de:51899";
|
||
|
persistentKeepalive = 25;
|
||
|
}
|
||
|
{
|
||
|
# giggles
|
||
|
publicKey = "i5kiTSPGR2jrdHl+s/S6D0YWb+xkbPudczG2RWmWwCg=";
|
||
|
allowedIPs = [ "10.0.1.11/32" ];
|
||
|
endpoint = "giggles.local:51899";
|
||
|
persistentKeepalive = 25;
|
||
|
}
|
||
|
{
|
||
|
# companion
|
||
|
publicKey = "7EUcSUckw/eLiWFHD+AzfcoKWstjr+cL70SupOJ6zC0=";
|
||
|
allowedIPs = [ "10.0.1.13/32" ];
|
||
|
endpoint = "companion.local:51899";
|
||
|
persistentKeepalive = 25;
|
||
|
}
|
||
|
{
|
||
|
# ringo
|
||
|
publicKey = "n4fGufXDjHitgS2HqVjKRdSNw+co1rYEV1Sw+sCCVzw=";
|
||
|
allowedIPs = [ "10.0.1.21/32" ];
|
||
|
endpoint = "ringo.local:51899";
|
||
|
persistentKeepalive = 25;
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|