dotfiles/.forgejo/workflows/build_nixos_configs.yml
2026-02-28 22:05:51 -08:00

30 lines
1 KiB
YAML

name: Build NixOS Configurations
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container:
image: node:25
volumes:
- "/nix:/nix"
strategy:
matrix:
system:
- "carbon"
- "git"
- "gospel"
- "node"
steps:
- name: Check out repository code
uses: actions/checkout@v4
- run: |
echo 'Building configuration for ${{ matrix.system }}'
nix --extra-experimental-features nix-command --extra-experimental-features flakes \
build .#nixosConfigurations.${{ matrix.system }}.config.system.build.toplevel
- name: Push build to attic
run: |
nix --extra-experimental-features nix-command --extra-experimental-features flakes run nixpkgs#attic-client \
-- login gospel https://attic.kilonull.com ${{ secrets.ATTIC_PUSH_SECRET }}
nix --extra-experimental-features nix-command --extra-experimental-features flakes run nixpkgs#attic-client \
-- push gospel:nixosConfigs ./result