about summary refs log tree commit diff
path: root/.github/workflows/rebuild.yml
blob: 474abaf0702671e5ab29b2ad6e0e6809e31b502c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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