path fixes
Some checks failed
Activate NixOS Homelab Configuration On Push / build-and-activate (push) Failing after 1m26s

This commit is contained in:
Satria 2026-03-14 10:27:29 +07:00
commit 0bfffe7acb

View file

@ -3,19 +3,22 @@ on:
push: push:
branches: branches:
- main - main
env:
PATH: /run/current-system/sw/bin:/run/wrappers/bin
jobs: jobs:
build-and-activate: build-and-activate:
runs-on: nixos-server runs-on: nixos-server
defaults:
run:
shell: /bin/sh -e {0}
steps: steps:
- name: Clone - name: Clone
shell: /bin/sh -e {0}
run: git clone http://localhost:5080/satr14/nix-flake.git src run: git clone http://localhost:5080/satr14/nix-flake.git src
- name: Build - name: Build
shell: /bin/sh -e {0}
run: nixos-rebuild build --flake ./src#homelab run: nixos-rebuild build --flake ./src#homelab
- name: Activate - name: Activate
shell: /bin/sh -e {0}
run: sudo nixos-rebuild switch --flake ./src#homelab run: sudo nixos-rebuild switch --flake ./src#homelab
- name: Clean - name: Clean
shell: /bin/sh -e {0}
run: rm -rf src run: rm -rf src