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 ]; };