major refactor (treewide amongst general cleaning based on my modified dots (with help from notashelf) - perks 1: it works
This commit is contained in:
parent
ea3485f5c5
commit
d666f30475
31 changed files with 2140 additions and 1145 deletions
23
.github/workflows/check.yml
vendored
Normal file
23
.github/workflows/check.yml
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
name: Check Flake
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
paths:
|
||||
- "**.nix"
|
||||
- "**.lock"
|
||||
- ".github/workflows/check.yml"
|
||||
push:
|
||||
paths:
|
||||
- "**.nix"
|
||||
- "**.lock"
|
||||
- ".github/workflows/check.yml"
|
||||
|
||||
jobs:
|
||||
check:
|
||||
# uses the local reusable workflow
|
||||
uses: ./.github/workflows/nix.yml
|
||||
secrets:
|
||||
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
with:
|
||||
command: nix flake check --accept-flake-config
|
||||
33
.github/workflows/nix.yml
vendored
Normal file
33
.github/workflows/nix.yml
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
name: Nix Setup
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
command:
|
||||
required: false
|
||||
type: string
|
||||
platform:
|
||||
default: "ubuntu"
|
||||
required: false
|
||||
type: string
|
||||
secrets:
|
||||
GH_TOKEN:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
nix:
|
||||
runs-on: "${{ inputs.platform }}-latest"
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
token: "${{ secrets.GH_TOKEN }}"
|
||||
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@main
|
||||
|
||||
- name: Nix Magic Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
|
||||
- name: "Run Input: ${{ inputs.command }}"
|
||||
run: "${{ inputs.command }}"
|
||||
Reference in a new issue