From 92b0df5a3d524e7906ab2ba1b08e46b5933434e0 Mon Sep 17 00:00:00 2001 From: Jermeiah S Date: Thu, 19 Jun 2025 16:53:41 -0400 Subject: [PATCH 1/3] disable workflow (temp) --- .forgejo/workflows/push.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/push.yaml b/.forgejo/workflows/push.yaml index cbf6be3..8903e5e 100644 --- a/.forgejo/workflows/push.yaml +++ b/.forgejo/workflows/push.yaml @@ -3,6 +3,7 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: DeterminateSystems/nix-installer-action@main - - uses: DeterminateSystems/magic-nix-cache-action@main - - run: nix flake check . + # - uses: DeterminateSystems/nix-installer-action@main + # - uses: DeterminateSystems/magic-nix-cache-action@main + # - run: nix flake check . + - run: echo hi From cebf78694bfe995ba6c97d7d768af146bc80e3c3 Mon Sep 17 00:00:00 2001 From: Jermeiah S Date: Thu, 19 Jun 2025 16:54:25 -0400 Subject: [PATCH 2/3] rename base-image to base --- configurations/nixos/{base-image => base}/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename configurations/nixos/{base-image => base}/default.nix (80%) diff --git a/configurations/nixos/base-image/default.nix b/configurations/nixos/base/default.nix similarity index 80% rename from configurations/nixos/base-image/default.nix rename to configurations/nixos/base/default.nix index 480fe19..1ccb343 100644 --- a/configurations/nixos/base-image/default.nix +++ b/configurations/nixos/base/default.nix @@ -12,7 +12,7 @@ in { imports = [ self.nixosModules.default - "${modulesPath}/virtualisation/lxc-container.nix" + # "${modulesPath}/virtualisation/lxc-container.nix" ]; deploy = { enable = false; @@ -22,7 +22,7 @@ in }; networking = { - hostName = "tofu"; + hostName = "base"; }; environment.systemPackages = [ ]; From 0fa99255f73eaac47cd80391ccf1727bffcf430d Mon Sep 17 00:00:00 2001 From: Jermeiah S Date: Thu, 19 Jun 2025 16:54:49 -0400 Subject: [PATCH 3/3] init: create forgejo-runner --- .../nixos/forgejo-runner/default.nix | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 configurations/nixos/forgejo-runner/default.nix diff --git a/configurations/nixos/forgejo-runner/default.nix b/configurations/nixos/forgejo-runner/default.nix new file mode 100644 index 0000000..8403bce --- /dev/null +++ b/configurations/nixos/forgejo-runner/default.nix @@ -0,0 +1,56 @@ +{ + flake, + modulesPath, + config, + pkgs, + ... +}: + +let + inherit (flake) inputs; + inherit (inputs) self; +in +{ + imports = [ + self.nixosModules.default + "${modulesPath}/virtualisation/lxc-container.nix" + ]; + + nix.settings = { + allowed-users = [ "gitea-runner" ]; + trusted-users = [ "gitea-runner" ]; + }; + + services.gitea-actions-runner = { + package = pkgs.forgejo-runner; + instances = { + native = { + enable = true; + url = "https://git.skdevstuios.com"; + name = "nix"; + labels = [ "native:host" ]; + tokenFile = config.sops.secrets.forgejo-runners-token.path; + hostPackages = with pkgs; [ + nix + nodejs + git + bash + coreutils + curl + ]; + }; + }; + }; + deploy = { + enable = false; + }; + services = { + tty-ips.enable = true; + }; + networking = { + hostName = "base"; + }; + environment.systemPackages = [ + ]; + system.stateVersion = "25.05"; +}