From bd6b6fd8f6340678acf12158ea92dee16349ccb4 Mon Sep 17 00:00:00 2001 From: Hendrik Sokolowski Date: Fri, 6 Oct 2023 00:09:56 +0200 Subject: [PATCH] SQ ringo --- hosts/ringo/home-controller.nix | 38 ++++++--------------------------- 1 file changed, 6 insertions(+), 32 deletions(-) diff --git a/hosts/ringo/home-controller.nix b/hosts/ringo/home-controller.nix index 3f679ba4..f5265ef8 100644 --- a/hosts/ringo/home-controller.nix +++ b/hosts/ringo/home-controller.nix @@ -1,43 +1,17 @@ -{ self, config, pkgs, ... }: - { + 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_ringo_wireguard_key.age"; pub-solar.home-controller = { enable = true; - role = "agent"; ownIp = "10.0.1.21"; - k3s = { - serverAddr = "https://api.kube:6443"; - tokenFile = "/run/agenix/home_controller_k3s_token"; - }; - - wireguard = { - privateKeyFile = "/run/agenix/home_controller_wireguard"; - peers = [ - { - # giggles - publicKey = "i5kiTSPGR2jrdHl+s/S6D0YWb+xkbPudczG2RWmWwCg="; - allowedIPs = [ "10.0.1.11/32" ]; - endpoint = "giggles.local:51899"; - } - { - # cox - publicKey = "VogQYYYNdXLhPKY9/P2WAn6gfEX9ojN3VD+DKx4gl0k="; - allowedIPs = [ "10.0.1.12/32" ]; - endpoint = "cox.local:51899"; - } - { - # companion - publicKey = "7EUcSUckw/eLiWFHD+AzfcoKWstjr+cL70SupOJ6zC0="; - allowedIPs = [ "10.0.1.13/32" ]; - endpoint = "companion.local:51899"; - } - ]; - }; + wireguardPrivateKeyFile = "/run/agenix/home_controller_wireguard"; }; }; }