From b1406939d21b78427276e2115673aa7ebd7fff55 Mon Sep 17 00:00:00 2001 From: Satria Date: Sat, 14 Mar 2026 09:34:53 +0700 Subject: [PATCH] change token path and add workflow file --- .forgejo/workflows/activate.yml | 13 +++++++++++++ modules/system/homelab/git.nix | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .forgejo/workflows/activate.yml diff --git a/.forgejo/workflows/activate.yml b/.forgejo/workflows/activate.yml new file mode 100644 index 0000000..4b7c1d2 --- /dev/null +++ b/.forgejo/workflows/activate.yml @@ -0,0 +1,13 @@ +name: Activate NixOS Configuration On Push +on: + push: + branches: + - main +jobs: + deploy: + runs-on: nixos-server + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Build and activate system + run: sudo nixos-rebuild switch --flake .#homelab \ No newline at end of file diff --git a/modules/system/homelab/git.nix b/modules/system/homelab/git.nix index d94756d..c0d0ff1 100644 --- a/modules/system/homelab/git.nix +++ b/modules/system/homelab/git.nix @@ -58,7 +58,7 @@ enable = true; name = "nixos-server-runner"; url = "https://git.proxy.${homelab.domain}"; - tokenFile = "/mnt/data/forgejo/runner/nixos_deploy_runner_token"; + tokenFile = "/root/forgejo-token-runner"; labels = [ "nixos-server" ]; hostPackages = with pkgs; [ bash coreutils git nix ]; };