change token path and add workflow file
Some checks failed
Activate NixOS Configuration On Push / deploy (push) Failing after 13s

This commit is contained in:
Satria 2026-03-14 09:34:53 +07:00
commit b1406939d2
2 changed files with 14 additions and 1 deletions

View file

@ -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

View file

@ -58,7 +58,7 @@
enable = true; enable = true;
name = "nixos-server-runner"; name = "nixos-server-runner";
url = "https://git.proxy.${homelab.domain}"; url = "https://git.proxy.${homelab.domain}";
tokenFile = "/mnt/data/forgejo/runner/nixos_deploy_runner_token"; tokenFile = "/root/forgejo-token-runner";
labels = [ "nixos-server" ]; labels = [ "nixos-server" ];
hostPackages = with pkgs; [ bash coreutils git nix ]; hostPackages = with pkgs; [ bash coreutils git nix ];
}; };