From a3780cae3315d761070371c468244335969b555c Mon Sep 17 00:00:00 2001 From: Gabriel Simmer Date: Fri, 8 Dec 2023 23:41:29 +0000 Subject: [PATCH] Remove coder from gitea runner, ssh keys --- nix/oracle-gitea-runner/configuration.nix | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/nix/oracle-gitea-runner/configuration.nix b/nix/oracle-gitea-runner/configuration.nix index d149754..e826056 100644 --- a/nix/oracle-gitea-runner/configuration.nix +++ b/nix/oracle-gitea-runner/configuration.nix @@ -18,13 +18,6 @@ tailscale ]; - services.coder = { - enable = true; - group = "docker"; - listenAddress = "0.0.0.0:3000"; - package = (pkgs.callPackage ./coder.nix {}); - }; - services.gitea-actions-runner = { package = pkgs.forgejo-actions-runner; instances = { @@ -35,7 +28,7 @@ "debian-latest-arm:docker://node:18-bullseye" ]; url = "https://git.gmem.ca"; - token = "rclEuf0ZKhWKe7IhvWZqgJpb1y84iYBJsJi7Wslh"; + token = "dcSqNPRfeAFjAA2NUzZRbO4Q2k1L2WOOCAEAhPR4"; settings = { cache.port = 4328; }; @@ -62,9 +55,13 @@ }; users.users = { - root.openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILIztwQxt+jqroFONSgq+xzPMuE2I5Dq/zWPQ8RcTYJr" - ]; + root.openssh.authorizedKeys.keys = let + authorizedKeys = pkgs.fetchurl { + url = "https://gmem.ca/ssh"; + hash = "sha256-7PpFDgWVfp26c9PuW+2s3O8MBAODtHr4q7WU/l3BoG4="; + }; + in pkgs.lib.splitString "\n" (builtins.readFile + authorizedKeys); }; virtualisation = { docker = {