chore: Update ci

This commit is contained in:
Hunter Halloran
2025-12-17 11:42:17 -05:00
parent 9514fe2868
commit f98aa0b19b
3 changed files with 28 additions and 20 deletions

View File

@@ -38,9 +38,10 @@ jobs:
exit 1
fi
build-configs:
name: Build Key Configurations
eval-configs:
name: Evaluate Key Configurations
runs-on: [self-hosted, nix-builder]
needs: [flake-check, format-check]
strategy:
matrix:
config:
@@ -52,16 +53,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build configuration
- name: Evaluate configuration
run: |
echo "Building configuration for ${{ matrix.config }}"
nix build .#nixosConfigurations.${{ matrix.config }}.config.system.build.toplevel \
--print-build-logs \
echo "Evaluating configuration for ${{ matrix.config }}"
nix eval .#nixosConfigurations.${{ matrix.config }}.config.system.build.toplevel.drvPath \
--show-trace
build-artifacts:
name: Build Artifacts
runs-on: [self-hosted, nix-builder]
needs: [flake-check, format-check]
strategy:
matrix:
artifact:

View File

@@ -73,7 +73,12 @@ let
# Each wrapper checks if the user is enabled before applying the module content
userNixosModules = lib.mapAttrsToList (
name: modulePath:
{ config, lib, pkgs, ... }@args:
{
config,
lib,
pkgs,
...
}@args:
let
# Import the user's nixos module - it returns a function or attrset
importedModuleFunc = import modulePath { inherit inputs; };

View File

@@ -97,7 +97,9 @@ mkIf builderCfg.githubRunner.enable {
cd "$runnerDir"
# Configure the runner, optionally replacing existing registration
if [ ! -f ".runner" ] || [ "${if builderCfg.githubRunner.replace then "true" else "false"}" = "true" ]; then
if [ ! -f ".runner" ] || [ "${
if builderCfg.githubRunner.replace then "true" else "false"
}" = "true" ]; then
echo "Configuring GitHub Actions runner..."
${runnerPkg}/bin/Runner.Listener configure \
--unattended \