about summary refs log tree commit diff
path: root/.github/workflows/rebuild.yml
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2024-10-04 17:32:27 +0200
committerGitHub <noreply@github.com>2024-10-04 17:32:27 +0200
commit4c52e693cbafa751de95b50ee1e1bcc1f2545070 (patch)
treea5efbd68ec1612266f1ddadefb85b0c3f7b8363a /.github/workflows/rebuild.yml
parent46c589dc27deb101b00d032df736caf559fa05bd (diff)
downloaddots-4c52e693cbafa751de95b50ee1e1bcc1f2545070.tar.gz
dots-4c52e693cbafa751de95b50ee1e1bcc1f2545070.zip
Update and rename main.yml to rebuild.yml
Diffstat (limited to '.github/workflows/rebuild.yml')
-rw-r--r--.github/workflows/rebuild.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/rebuild.yml b/.github/workflows/rebuild.yml
new file mode 100644
index 0000000..474abaf
--- /dev/null
+++ b/.github/workflows/rebuild.yml
@@ -0,0 +1,28 @@
+name: "Rebuild system"
+
+on:
+  workflow_dispatch:
+  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