From 7261f7a435deaf110ef6f3d08b87247f16abb978 Mon Sep 17 00:00:00 2001 From: Christoph Hollizeck Date: Mon, 28 Apr 2025 23:30:53 +0200 Subject: [PATCH] loptland: add remotebuild connection to nixberry --- systems/x86_64-linux/loptland/default.nix | 84 +++++++++++++---------- 1 file changed, 46 insertions(+), 38 deletions(-) diff --git a/systems/x86_64-linux/loptland/default.nix b/systems/x86_64-linux/loptland/default.nix index 785d616..7bde9df 100644 --- a/systems/x86_64-linux/loptland/default.nix +++ b/systems/x86_64-linux/loptland/default.nix @@ -158,6 +158,20 @@ in "benchmark" ]; } + + { + hostName = "100.86.23.74"; + sshUser = "remotebuild"; + sshKey = "/root/.ssh/remotebuild"; + systems = [ "aarch64-linux" ]; + protocol = "ssh-ng"; + + supportedFeatures = [ + "nixos-test" + "big-parallel" + "kvm" + ]; + } ]; }; @@ -174,38 +188,38 @@ in useRoutingFeatures = "client"; }; - # services.gitea-actions-runner = { - # package = pkgs.forgejo-actions-runner; - # instances.default = { - # enable = true; - # name = "monolith"; - # url = "https://git.${domainName}"; - # tokenFile = config.sops.secrets."forgejo/runner/token".path; - # labels = [ - # "native:host" - # ]; - # hostPackages = with pkgs; [ - # bash - # coreutils - # curl - # gawk - # gitMinimal - # gnused - # nodejs - # wget - # ]; - # settings = { - # log.level = "info"; - # runner = { - # capacity = 1; - # timeout = "3h"; - # shutdown_timeout = "3s"; - # fetch_timeout = "5s"; - # fetch_inteval = "2s"; - # }; - # }; - # }; - # }; + services.gitea-actions-runner = { + package = pkgs.forgejo-actions-runner; + instances.default = { + enable = true; + name = "monolith"; + url = "https://git.${domainName}"; + tokenFile = config.sops.secrets."forgejo/runner/token".path; + labels = [ + "native:host" + ]; + hostPackages = with pkgs; [ + bash + coreutils + curl + gawk + gitMinimal + gnused + nodejs + wget + ]; + settings = { + log.level = "info"; + runner = { + capacity = 1; + timeout = "3h"; + shutdown_timeout = "3s"; + fetch_timeout = "5s"; + fetch_inteval = "2s"; + }; + }; + }; + }; networking.firewall.allowedTCPPorts = [ forgejoPort @@ -239,11 +253,5 @@ in ]; }; - # snowfallorg.users.${config.${namespace}.user.name}.home.config = { - # programs.fish.shellInit = '' - # eval $(op signin) - # ''; - # }; - system.stateVersion = "24.11"; }