summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-07-11 07:53:54 +0200
committerRory& <root@rory.gay>2026-07-11 07:53:54 +0200
commit4cfb0bb6c098bb072a4edaa437c587dd06e155b1 (patch)
treebcf5c378b52846da91fe7caeba353c674808456c
parentSkip Klipy tests in nixosTests (diff)
downloadserver-ts-4cfb0bb6c098bb072a4edaa437c587dd06e155b1.tar.xz
Harmonize GHA workflows a little, add nix-bincache.rory.gay to trusted list to make github go brr
-rw-r--r--.github/workflows/build-docker.yml6
-rw-r--r--.github/workflows/dependabot-nix-update.yml9
-rw-r--r--.github/workflows/nix-build.yml9
-rw-r--r--.github/workflows/style.yml3
-rw-r--r--flake.nix11
5 files changed, 29 insertions, 9 deletions
diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml

index 39bacd07..82a02843 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml
@@ -26,7 +26,11 @@ jobs: - uses: actions/checkout@v6 - uses: cachix/install-nix-action@v31 with: - nix_path: nixpkgs=channel:nixos-unstable + extra_nix_config: | + system-features = nixos-test benchmark big-parallel kvm + trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-bincache.rory.gay:663PIW8xxgIImxLcsokODWI2PHFWXvzJEfjX6TaIjxQ= + trusted-substituters = https://cache.nixos.org https://nix-bincache.rory.gay + - name: Build the docker image run: nix build .#containers.x86_64-linux.docker.${{ matrix.package }} - run: docker load < result diff --git a/.github/workflows/dependabot-nix-update.yml b/.github/workflows/dependabot-nix-update.yml
index 3e80884b..7a319955 100644 --- a/.github/workflows/dependabot-nix-update.yml +++ b/.github/workflows/dependabot-nix-update.yml
@@ -14,10 +14,15 @@ jobs: contents: write steps: - name: Check Out Code - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Install Nix - uses: DeterminateSystems/nix-installer-action@main + uses: cachix/install-nix-action@v31 + with: + extra_nix_config: | + system-features = nixos-test benchmark big-parallel kvm + trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-bincache.rory.gay:663PIW8xxgIImxLcsokODWI2PHFWXvzJEfjX6TaIjxQ= + trusted-substituters = https://cache.nixos.org https://nix-bincache.rory.gay - name: Update Nix Flake run: nix flake update --extra-experimental-features 'nix-command flakes' diff --git a/.github/workflows/nix-build.yml b/.github/workflows/nix-build.yml
index 8aa98887..d266bd7b 100644 --- a/.github/workflows/nix-build.yml +++ b/.github/workflows/nix-build.yml
@@ -9,11 +9,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: cachix/install-nix-action@v31 with: - nix_path: nixpkgs=channel:nixos-unstable - #- uses: DeterminateSystems/magic-nix-cache-action@v13 + extra_nix_config: | + system-features = nixos-test benchmark big-parallel kvm + trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-bincache.rory.gay:663PIW8xxgIImxLcsokODWI2PHFWXvzJEfjX6TaIjxQ= + trusted-substituters = https://cache.nixos.org https://nix-bincache.rory.gay + - run: nix build -L -j auto - run: nix develop --command echo OK - run: nix flake check -vL -j auto diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml
index aea6784b..ef908875 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml
@@ -8,7 +8,6 @@ on: jobs: build: - runs-on: ubuntu-latest strategy: @@ -17,7 +16,7 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v5 with: diff --git a/flake.nix b/flake.nix
index 84afb2cb..63173661 100644 --- a/flake.nix +++ b/flake.nix
@@ -1,6 +1,15 @@ { description = "Spacebar server, written in Typescript."; + nixConfig = { + extra-substituters = [ + "https://nix-bincache.rory.gay" + ]; + extra-trusted-public-keys = [ + "nix-bincache.rory.gay:663PIW8xxgIImxLcsokODWI2PHFWXvzJEfjX6TaIjxQ=" + ]; + }; + inputs = { nixpkgs.url = "github:NixOS/nixpkgs/master"; # temp hack because unstable is frozen flake-utils.url = "github:numtide/flake-utils"; @@ -125,4 +134,4 @@ inherit self nixpkgs flake-utils; } ); -} +} \ No newline at end of file