Skip to content

Add nixos-hardware flake #92

Add nixos-hardware flake

Add nixos-hardware flake #92

Workflow file for this run

name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
concurrency: deploy
runs-on: ubuntu-latest
steps:
- uses: nixbuild/nix-quick-install-action@v25
with:
nix_conf: |
substituters = https://cache.nixos.org/
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
keep-outputs = true
- name: Restore and cache Nix store
uses: nix-community/[email protected]
with:
key: nix-cache
gc-linux: true
gc-max-store-size-linux: 10000000000
purge: true
purge-accessed: true
purge-accessed-max-age: 3600
- name: Cache Pulumi venv
uses: actions/cache@v3
with:
path: pulumi/venv
key: pulumi-venv
- name: Check out repository code
uses: actions/checkout@v4
- name: Lint nix
run: nix develop --command -- statix check
- name: Provision Infrastructure
run: nix develop --command -- deploy-pulumi --yes --non-interactive
env:
SOPS_AGE_KEY: ${{ secrets.SOPS_AGE_KEY }}
- name: Provision Servers
run: nix develop --command -- deploy-colmena apply
env:
SOPS_AGE_KEY: ${{ secrets.SOPS_AGE_KEY }}