Skip to content

Commit

Permalink
chore: Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Jun 20, 2024
1 parent 1330263 commit 3a23030
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "CI"
on:
push:
branches:
- main
pull_request:
jobs:
checks:
runs-on: ${{ matrix.system }}
permissions:
contents: read
strategy:
matrix:
system: [ x86_64-linux, aarch64-darwin ]
steps:
- uses: actions/checkout@v4
- run: nixci --extra-access-tokens "github.com=${{ secrets.GITHUB_TOKEN }}" build --systems "github:nix-systems/${{ matrix.system }}"
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# github-ci-nix
A simple NixOS & nix-darwin module for managing self-hosted GitHub runners

WIP: A simple NixOS & nix-darwin module for managing self-hosted GitHub runners
60 changes: 60 additions & 0 deletions example/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions example/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nix-darwin.url = "github:LnL7/nix-darwin";
};
outputs = inputs: {
nixosConfigurations.example = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{
system.stateVersion = "24.05";
}
];
};

darwinConfigurations.example = inputs.nix-darwin.lib.darwinSystem {
system = "aarch64-darwin";
modules = [
{
services.nix-daemon.enable = true;
}
];
};
};
}
7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
outputs = _: {
nixci.default = {
example.dir = ./example;
};
};
}

0 comments on commit 3a23030

Please sign in to comment.