github-ci: add

This commit is contained in:
Felix Buehler 2023-07-30 13:04:13 +02:00
parent 4c76c412da
commit a77b786046
2 changed files with 26 additions and 1 deletions

25
.github/workflows/nix.yml vendored Normal file
View file

@ -0,0 +1,25 @@
---
on:
pull_request:
push:
branches: [main, master]
jobs:
build:
name: Build Nix targets
runs-on: ubuntu-22.04
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Install Nix
uses: cachix/install-nix-action@v22
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v5
with:
ignore-missing-flake-lock: false
fail-mode: true
- name: Check Nix flake
run: nix flake check
# - name: Build Nix packages
# run: nix build

View file

@ -1,4 +1,4 @@
# nixos-config [![built with nix](https://builtwithnix.org/badge.svg)](https://builtwithnix.org) # nixos-config [![built with nix](https://builtwithnix.org/badge.svg)](https://builtwithnix.org)![CI](https://github.com/Stunkymonkey/nixos/actions/workflows/nix.yml/badge.svg)
This repository holds my NixOS configuration. This repository holds my NixOS configuration.
It is fully reproducible, flakes based, and position-independent, ... It is fully reproducible, flakes based, and position-independent, ...