From 46c589dc27deb101b00d032df736caf559fa05bd Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Fri, 4 Oct 2024 17:29:48 +0200 Subject: Add auto rebuild --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..c9a0103 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +name: "Rebuild system" + +on: + schedule: + - cron: "0 8 * * 0" + +jobs: + fetcher: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: "Install Nix ❄️" + uses: cachix/install-nix-action@v18 + with: + extra_nix_config: | + substituters = https://pn.cachix.org/ https://cache.nixos.org/ + trusted-public-keys = pn.cachix.org-1:KC0hqPVkcs7WUSv8xCkUNzrpDVKYh8TwZIqvhASvbJM= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= + + - name: Cachix + uses: cachix/cachix-action@v15 + with: + name: pn + + - name: "Build" + id: fetcher + run: nix build .#nixosConfigurations.t14 -- cgit 1.4.1