diff --git a/hosts/patroclus/configuration.nix b/hosts/patroclus/configuration.nix index 68e9f47..4e867e3 100644 --- a/hosts/patroclus/configuration.nix +++ b/hosts/patroclus/configuration.nix @@ -3,7 +3,6 @@ imports = [ ./authentik.nix ./hardware-configuration.nix - ./k3s.nix ]; virtualisation = { libvirtd.enable = true; diff --git a/hosts/patroclus/k3s.nix b/hosts/patroclus/k3s.nix deleted file mode 100644 index e94b6a2..0000000 --- a/hosts/patroclus/k3s.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ config, self, ... }: -{ - services.k3s = { - enable = true; - clusterInit = true; - disableAgent = true; - role = "server"; - tokenFile = config.age.secrets."k3s/common-secret".path; - }; - users = { - users.k3s = { - isSystemUser = true; - group = "k3s"; - }; - groups.k3s = { }; - }; - age.secrets = { - "k3s/common-secret" = { - file = "${self}/secrets/k3s/common-secret.age"; - mode = "440"; - owner = "k3s"; - group = "k3s"; - }; - }; -} diff --git a/secrets/k3s/common-secret.age b/secrets/k3s/common-secret.age deleted file mode 100644 index 7b7a7a6..0000000 --- a/secrets/k3s/common-secret.age +++ /dev/null @@ -1,7 +0,0 @@ -age-encryption.org/v1 --> ssh-ed25519 eJlTVQ DyVK+EoM/k19j//qrnGH8F1FoUOagtC+kKVGj6B3xXs -YSrnp3eZcMURG0GMq7W27h9LtpbPWouO9gdrTRK8+c0 --> ssh-ed25519 WYFuJw tJhJLlyVcFW5gAM/7mN7GCwYcyXXHXGGCSNV1ky6ry8 -G2Wey5UR0FiJGso3h/Ix7Ba/isZ553CTswmZBbI0atY ---- J15XIWhWqAdUdjqUC6fEWf99+6kjtEpA0XNpy9afBzI -<WqXA8ȘxJC.>%>dߘY0CK}Ͻ.^J5TXV} \ No newline at end of file diff --git a/secrets/secrets.nix b/secrets/secrets.nix index 64675c6..c873ccc 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -56,7 +56,4 @@ in # cloudflared "cloudflared/creds.json.age".publicKeys = writers ++ [ patroclus ]; "cloudflared/cert.pem.age".publicKeys = writers ++ [ patroclus ]; - - # k3s - "k3s/common-secret.age".publicKeys = writers ++ [ patroclus ]; }