Compare commits

...

40 Commits

Author SHA1 Message Date
Luc Perkins aa0e540080 Merge pull request #252 from detsys-pr-bot/detsys-ts-update-bc7c106804f775f17c754b620f1dfd23add68e03
CI / tests (push) Blocked by required conditions
CI / Test: ${{ matrix.system.nix-system }} on ${{ matrix.system.runner }}${{ matrix.determinate && ' with determinate' || '' }} (false, map[nix-system:aarch64-darwin runner:macos-latest]) (push) Waiting to run
CI / Test: ${{ matrix.system.nix-system }} on ${{ matrix.system.runner }}${{ matrix.determinate && ' with determinate' || '' }} (false, map[nix-system:x86_64-linux runner:nscloud-ubuntu-22.04-amd64-4x16]) (push) Waiting to run
CI / Test: ${{ matrix.system.nix-system }} on ${{ matrix.system.runner }}${{ matrix.determinate && ' with determinate' || '' }} (true, map[nix-system:aarch64-darwin runner:macos-latest]) (push) Waiting to run
CI / Test: ${{ matrix.system.nix-system }} on ${{ matrix.system.runner }}${{ matrix.determinate && ' with determinate' || '' }} (true, map[nix-system:x86_64-linux runner:nscloud-ubuntu-22.04-amd64-4x16]) (push) Waiting to run
CI / Install Nix without an ID token (push) Successful in 1m6s
CI / Check the dist/ folder is up to date (push) Failing after 1m13s
CI / Install Nix using non-default source-${{ matrix.inputs.key }} (map[key:url nix-version:2.31.2 value:https://github.com/DeterminateSystems/nix-installer/releases/download/v3.11.3/nix-installer-x86_64-linux]) (push) Failing after 1m11s
Update `detsys-ts`: Merge pull request #177 from DeterminateSystems/dependabot/npm_and_yarn/fast-xml-parser-5.7.3
2026-05-11 16:36:55 -05:00
Cole Helbling b6e4494ddc Merge pull request #251 from DeterminateSystems/dependabot/npm_and_yarn/fast-xml-builder-1.2.0 2026-05-08 13:29:56 -07:00
lucperkins fcf915473a Update detsys-ts for: Merge pull request #177 from DeterminateSystems/dependabot/npm_and_yarn/fast-xml-parser-5.7.3 (bc7c106804f775f17c754b620f1dfd23add68e03) 2026-05-08 20:17:55 +00:00
lucperkins 36fb5b1a60 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.987561%2Brev-1c3fe55ad329cbcb28471bb30f05c9827f724c76/019dd544-2f5a-70b0-a89a-cf26aa85b1a7/source.tar.gz' (2026-04-27)
  → 'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.992384%2Brev-549bd84d6279f9852cae6225e372cc67fb91a4c1/019df915-70b5-73a2-a5a4-63c620b45d9f/source.tar.gz' (2026-05-05)
2026-05-08 20:16:49 +00:00
Luc Perkins c2a30cb3a8 Regenerate dist 2026-05-08 15:13:10 -05:00
dependabot[bot] 3e4b225f86 Bump fast-xml-builder from 1.1.5 to 1.2.0
Bumps [fast-xml-builder](https://github.com/NaturalIntelligence/fast-xml-builder) from 1.1.5 to 1.2.0.
- [Changelog](https://github.com/NaturalIntelligence/fast-xml-builder/blob/main/CHANGELOG.md)
- [Commits](https://github.com/NaturalIntelligence/fast-xml-builder/compare/v1.1.5...v1.2.0)

---
updated-dependencies:
- dependency-name: fast-xml-builder
  dependency-version: 1.2.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-08 18:38:46 +00:00
detsys-pr-bot 4a754ab0c1 Update detsys-ts: Populate group properties (#176) (#250)
* flake.lock: Update

Flake lock file updates:

• Updated input 'nixpkgs':
    'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.977467%2Brev-4c1018dae018162ec878d42fec712642d214fdfa/019d75d9-1186-76c1-baa5-93baafa37a8d/source.tar.gz' (2026-04-09)
  → 'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.987561%2Brev-1c3fe55ad329cbcb28471bb30f05c9827f724c76/019dd544-2f5a-70b0-a89a-cf26aa85b1a7/source.tar.gz' (2026-04-27)

* Update `detsys-ts` for: `Populate group properties (#176)` (`3d0595ccaeb93bc23f37dd8f928ad6f2c7e96533`)

---------

Co-authored-by: grahamc <grahamc@users.noreply.github.com>
Co-authored-by: grahamc <76716+grahamc@users.noreply.github.com>
2026-04-29 23:17:31 +00:00
Cole Helbling 92148bb48b Merge pull request #247 from detsys-pr-bot/detsys-ts-update-726a3af42b38166248e4e67011ba04523be3a1a9 2026-04-15 10:05:38 -07:00
cole-h 27719816fa Update detsys-ts for: Merge pull request #171 from DeterminateSystems/update-deps (726a3af42b38166248e4e67011ba04523be3a1a9) 2026-04-15 15:27:00 +00:00
cole-h d8e7e8f433 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.971119%2Brev-8110df5ad7abf5d4c0f6fb0f8f978390e77f9685/019d3c72-3e5d-7d8e-a4fc-0fe67ed1554b/source.tar.gz' (2026-03-28)
  → 'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.977467%2Brev-4c1018dae018162ec878d42fec712642d214fdfa/019d75d9-1186-76c1-baa5-93baafa37a8d/source.tar.gz' (2026-04-09)
2026-04-15 15:25:56 +00:00
Luc Perkins b66b36319c Merge pull request #244 from DeterminateSystems/dependabot/npm_and_yarn/vite-7.3.2
Bump vite from 7.3.1 to 7.3.2
2026-04-06 19:59:13 -03:00
dependabot[bot] 316ffaba87 Bump vite from 7.3.1 to 7.3.2
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.3.1 to 7.3.2.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v7.3.2/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.3.2/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 7.3.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-06 22:47:13 +00:00
Luc Perkins 430608d219 Merge pull request #243 from DeterminateSystems/switch-to-npm 2026-03-31 17:42:03 -03:00
Luc Perkins efb202a03d Change structure of build matrix 2026-03-31 13:23:45 -03:00
Luc Perkins db0a13c605 Remove unused runners 2026-03-31 13:21:32 -03:00
Luc Perkins b38ad18dfd Switch from pnpm to npm 2026-03-31 13:16:13 -03:00
Cole Helbling 490cfee336 Merge pull request #242 from DeterminateSystems/dependabot/npm_and_yarn/brace-expansion-1.1.13 2026-03-30 07:37:05 -07:00
Cole Helbling f329e312da fixup: ignore pnpm lock formatting... 2026-03-30 07:32:02 -07:00
dependabot[bot] a144448e6c Bump brace-expansion from 1.1.12 to 1.1.13
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.12 to 1.1.13.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/v1.1.12...v1.1.13)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.13
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-30 14:23:05 +00:00
Graham Christensen ef8a148080 Update deps, go to node24 (#239)
* Update deps

* Update to actions/checkout@v4

* Node24

* ubuntu-22.04 update
2026-03-25 14:12:51 +00:00
detsys-pr-bot e02dcf858c Update detsys-ts: Drop the old schemas and integrate the open PRs (#162) (#238)
* flake.lock: Update

Flake lock file updates:

• Updated input 'flake-schemas':
    'https://api.flakehub.com/f/pinned/DeterminateSystems/flake-schemas/0.2.1/019c8ce4-cd63-7c3c-a4cf-d1e0788fdcd9/source.tar.gz' (2026-02-12)
  → 'https://api.flakehub.com/f/pinned/DeterminateSystems/flake-schemas/0.4.1/019d01eb-47d3-710f-aade-0515bfcdaa1f/source.tar.gz' (2026-03-18)
• Updated input 'nixpkgs':
    'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.953160%2Brev-2fc6539b481e1d2569f25f8799236694180c0993/019c8e05-d2f6-7c7e-9ead-612154b18bfb/source.tar.gz' (2026-02-23)
  → 'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.967235%2Brev-6c9a78c09ff4d6c21d0319114873508a6ec01655/019d198c-70dc-7753-b1d1-721451f578ae/source.tar.gz' (2026-03-21)

* Update `detsys-ts` for: `Drop the old schemas and integrate the open PRs (#162)` (`24d2aa4cffcb4fe9def110e054d79beda382e6e7`)

---------

Co-authored-by: grahamc <grahamc@users.noreply.github.com>
Co-authored-by: grahamc <76716+grahamc@users.noreply.github.com>
2026-03-25 00:36:30 +00:00
Graham Christensen 9a59e15a74 Attach build provenance (#236)
* Attach build provenance

* Update src/index.ts

Co-authored-by: gustavderdrache <alex.ford@determinate.systems>

---------

Co-authored-by: gustavderdrache <alex.ford@determinate.systems>
2026-03-20 09:57:34 -04:00
detsys-pr-bot d96bc962e6 Update detsys-ts for: unoptional timeout (#146) (a621ba724bb21cc2907e5252b681f9b064abc6cc) (#235)
Co-authored-by: grahamc <76716+grahamc@users.noreply.github.com>
2026-02-25 15:27:18 -05:00
Cole Helbling 874a9842e1 Merge pull request #233 from detsys-pr-bot/detsys-ts-update-d0fa3dbd59ce2872ddc10af1961c45538cee1bd2 2026-02-25 08:58:10 -08:00
grahamc 1ae25535ec Update detsys-ts for: Fix default value for Action option (#144) (d0fa3dbd59ce2872ddc10af1961c45538cee1bd2) 2026-02-25 15:16:15 +00:00
grahamc d9137d7b28 flake.lock: Update
Flake lock file updates:

• Updated input 'flake-schemas':
    'https://api.flakehub.com/f/pinned/DeterminateSystems/flake-schemas/0.2.0/019a4a84-544d-7c59-b26d-e334e320c932/source.tar.gz' (2025-10-27)
  → 'https://api.flakehub.com/f/pinned/DeterminateSystems/flake-schemas/0.2.1/019c8ce4-cd63-7c3c-a4cf-d1e0788fdcd9/source.tar.gz' (2026-02-12)
• Updated input 'nixpkgs':
    'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.945868%2Brev-a82ccc39b39b621151d6732718e3e250109076fa/019c5b2e-592f-7d17-b9ce-868f25acfeca/source.tar.gz' (2026-02-13)
  → 'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.953160%2Brev-2fc6539b481e1d2569f25f8799236694180c0993/019c8e05-d2f6-7c7e-9ead-612154b18bfb/source.tar.gz' (2026-02-23)
2026-02-25 15:15:36 +00:00
detsys-pr-bot 95f009f8cb Update detsys-ts: Bump fast-xml-parser from 5.3.4 to 5.3.6 (#140) (#231)
* flake.lock: Update

Flake lock file updates:

• Updated input 'nixpkgs':
    'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.942779%2Brev-d6c71932130818840fc8fe9509cf50be8c64634f/019c3fb4-003d-710c-9b72-1d2bb1b28de3/source.tar.gz' (2026-02-08)
  → 'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.945868%2Brev-a82ccc39b39b621151d6732718e3e250109076fa/019c5b2e-592f-7d17-b9ce-868f25acfeca/source.tar.gz' (2026-02-13)

* Update `detsys-ts` for: `Bump fast-xml-parser from 5.3.4 to 5.3.6 (#140)` (`f2d94964c763ad623d33d7dd59ba1474c79b8bbf`)

---------

Co-authored-by: grahamc <grahamc@users.noreply.github.com>
Co-authored-by: grahamc <76716+grahamc@users.noreply.github.com>
2026-02-18 16:51:54 +00:00
detsys-pr-bot 86cbc893b3 Update detsys-ts: Bump the npm-deps group across 1 directory with 9 updates (#138) (#230)
* flake.lock: Update

Flake lock file updates:

• Updated input 'flake-schemas':
    'https://api.flakehub.com/f/pinned/DeterminateSystems/flake-schemas/0.1.1/018a4c59-80e1-708a-bb4d-854930c20f72/source.tar.gz' (2023-08-31)
  → 'https://api.flakehub.com/f/pinned/DeterminateSystems/flake-schemas/0.2.0/019a4a84-544d-7c59-b26d-e334e320c932/source.tar.gz' (2025-10-27)
• Updated input 'nixpkgs':
    'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.534224%2Brev-f99e5f03cc0aa231ab5950a15ed02afec45ed51a/018b1d3c-12f0-76a5-b796-7668d7633f08/source.tar.gz' (2023-10-09)
  → 'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.942779%2Brev-d6c71932130818840fc8fe9509cf50be8c64634f/019c3fb4-003d-710c-9b72-1d2bb1b28de3/source.tar.gz' (2026-02-08)

* Update `detsys-ts` for: `Bump the npm-deps group across 1 directory with 9 updates (#138)` (`d010809b65687084386dd08928b4601be71aa4c0`)

---------

Co-authored-by: grahamc <grahamc@users.noreply.github.com>
Co-authored-by: grahamc <76716+grahamc@users.noreply.github.com>
2026-02-11 17:53:12 +00:00
detsys-pr-bot 500e7f9345 Update detsys-ts for: Bump fast-xml-parser from 5.3.3 to 5.3.4 (#134) (1fd5cb877ad465a427b5510707f37dd602fab5da) (#228)
Co-authored-by: grahamc <76716+grahamc@users.noreply.github.com>
2026-02-11 12:16:50 -05:00
detsys-pr-bot a4f499a84c Update detsys-ts for: Bumps (#131) (ecc6f7d8f51482a078b3a0ce35f90deed874cdf0) (#223)
Co-authored-by: grahamc <76716+grahamc@users.noreply.github.com>
2026-01-28 12:24:37 -05:00
Graham Christensen c39689c63e Tidy up the macos runner list (#224)
* Tidy up the macos runner list

* Oh right we don't support intel
2026-01-28 17:19:19 +00:00
andre4ik3 58e64ed13a Add summary toggle option (#217) 2026-01-20 12:18:36 -05:00
Luc Perkins 1e3c5df315 Merge pull request #220 from detsys-pr-bot/detsys-ts-update-157fae9c23160158d80bff4260243a2f117febd4
Update `detsys-ts`: Merge pull request #126 from DeterminateSystems/dependabot/npm_and_yarn/npm-deps-939209f320
2026-01-14 13:52:05 -03:00
lucperkins 4e167d57bb Update detsys-ts for: Merge pull request #126 from DeterminateSystems/dependabot/npm_and_yarn/npm-deps-939209f320 (157fae9c23160158d80bff4260243a2f117febd4) 2026-01-14 16:45:56 +00:00
Luc Perkins ab0a9732c6 Merge pull request #210 from DeterminateSystems/lucperkins/gtm-149-nix-installer-action-readme
Provide Determinate Nix vs. upstream Nix instructions
2025-12-09 15:54:50 -03:00
detsys-pr-bot e4fb5e65d8 Update detsys-ts for: Update main and types fields in package.json (#119) (437297ec87a5c62fd90edb905eae44ab173d2aa4) (#212)
Co-authored-by: grahamc <76716+grahamc@users.noreply.github.com>
2025-12-02 02:09:17 +00:00
Luc Perkins c786b79f19 Merge pull request #211 from detsys-pr-bot/detsys-ts-update-0e3d1accf3c5dab8b18274658ede653aa016b6cd
Update `detsys-ts`: Merge pull request #116 from DeterminateSystems/dependabot/github_actions/actions-deps-76468cb07f
2025-12-01 16:53:48 -03:00
lucperkins fcca85ded7 Update detsys-ts for: Merge pull request #116 from DeterminateSystems/dependabot/github_actions/actions-deps-76468cb07f (0e3d1accf3c5dab8b18274658ede653aa016b6cd) 2025-12-01 19:36:10 +00:00
Luc Perkins 69b69b2791 Fix value in table 2025-11-17 16:33:41 -03:00
Luc Perkins 4f7e5a32d2 Provide Determinate Nix vs. upstream Nix instructions 2025-11-17 16:24:49 -03:00
14 changed files with 82495 additions and 73555 deletions
+23 -25
View File
@@ -8,7 +8,7 @@ on:
jobs:
tests:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs:
- check-dist-up-to-date
- install-nix
@@ -24,48 +24,46 @@ jobs:
check-dist-up-to-date:
name: Check the dist/ folder is up to date
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/flakehub-cache-action@main
- name: pnpm install
run: nix develop --command pnpm install
- name: npm install
run: nix develop --command npm ci
- name: prettier format
run: nix develop --command pnpm run check-fmt
run: nix develop --command npm run check-fmt
- name: ESLint
run: nix develop --command pnpm run lint
run: nix develop --command npm run lint
- name: tsup build
run: nix develop --command pnpm run build
run: nix develop --command npm run build
- name: ncc package
run: nix develop --command pnpm run package
run: nix develop --command npm run package
- name: Git status
run: git status --porcelain=v1
- name: Ensure no staged changes
run: git diff --exit-code
install-nix:
name: "Test: ${{ matrix.runner }}${{ matrix.determinate && ' with determinate' || '' }}"
name: "Test: ${{ matrix.system.nix-system }} on ${{ matrix.system.runner }}${{ matrix.determinate && ' with determinate' || '' }}"
strategy:
fail-fast: false
matrix:
runner:
- ubuntu-latest
- nscloud-ubuntu-22.04-amd64-4x16
- namespace-profile-default-arm64
# - macos-12-large # determinate-nixd is broken on macos-12
- macos-13-large
- macos-14-large
- macos-14-xlarge # arm64
system:
- {
nix-system: x86_64-linux,
runner: nscloud-ubuntu-22.04-amd64-4x16,
}
- { nix-system: aarch64-darwin, runner: macos-latest }
determinate:
- true
- false
runs-on: ${{ matrix.runner }}
runs-on: ${{ matrix.system.runner }}
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Install Nix
uses: ./
with:
@@ -78,7 +76,7 @@ jobs:
run: echo $PATH
- name: Render the devshell
if: (success() || failure()) && matrix.runner != 'macos-13-large' && matrix.runner != 'macos-14-large'
if: (success() || failure())
run: |
nix develop --command date
@@ -146,7 +144,7 @@ jobs:
install-with-non-default-source-inputs:
name: Install Nix using non-default source-${{ matrix.inputs.key }}
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
matrix:
inputs:
@@ -156,7 +154,7 @@ jobs:
nix-version: "2.31.2" # 3.11.3 is based on 2.31.2
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Install with alternative source-${{ matrix.inputs.key }}
uses: ./
with:
@@ -167,9 +165,9 @@ jobs:
install-no-id-token:
name: Install Nix without an ID token
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: ./
with:
_internal-strict-mode: true
+4 -1
View File
@@ -1,3 +1,6 @@
.direnv/
dist/
lib/
node_modules/
node_modules/
package-lock.json
+1 -1
View File
@@ -1,5 +1,5 @@
# Submitting Pull Requests
Run `pnpm install` to install necessary JS tools.
Run `npm ci` to install necessary JS tools.
This action is based off https://github.com/actions/javascript-action. As part of your contributing flow you **must** run `npm run all` before we can merge.
+33 -12
View File
@@ -1,14 +1,14 @@
# The Determinate Nix Installer Action
Based on the [Determinate Nix Installer](https://github.com/DeterminateSystems/nix-installer), responsible for over tens of thousands of Nix installs daily.
The fast, friendly, and reliable GitHub Action to install Nix with Flakes.
The fast, friendly, and reliable GitHub Action to install [Determinate Nix][det-nix] with [flakes].
The Determinate Nix Installer Action is based on [Determinate Nix Installer][installer], which is responsible for tens of thousands of installs daily.
## Supports
-**Accelerated KVM** on open source projects and larger runners. See [GitHub's announcement](https://github.blog/changelog/2023-02-23-hardware-accelerated-android-virtualization-on-actions-windows-and-linux-larger-hosted-runners/) for more info.
- ✅ Linux, x86_64, aarch64, and i686
- ✅ macOS, x86_64 and aarch64
- ✅ WSL2, x86_64 and aarch64
- ✅ Linux (x86_64 and aarch64)
- ✅ macOS (aarch64)
- ✅ Windows Subsystem for Linux (WSL) (x86_64 and aarch64)
- ✅ Containers
- ✅ Valve's SteamOS
- ✅ GitHub Enterprise Server
@@ -27,14 +27,18 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: DeterminateSystems/nix-installer-action@main
- run: nix build .
```
> [!NOTE]
> This Action installs [Determinate Nix][det-nix] by default.
> You can, however, use it to install [upstream Nix](#installing-upstream-nix) until **January 1, 2026**.
### With FlakeHub
To fetch private flakes from FlakeHub and Nix builds from FlakeHub Cache, update the `permissions` block and use [`determinate-nix-action`][determinate-nix-action]:
To fetch private flakes from FlakeHub and Nix builds from FlakeHub Cache, update the `permissions` block and use [`determinate-nix-action`][determinate-nix-action] instead of this Action:
```yaml
on:
@@ -50,7 +54,7 @@ jobs:
id-token: "write"
contents: "read"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: DeterminateSystems/determinate-nix-action@v3
- run: nix build .
```
@@ -59,8 +63,8 @@ See [`.github/workflows/ci.yml`](.github/workflows/ci.yml) for a full example.
### Pinning the version
This GitHub Action uses the most recent version of the Determinate Nix Installer, even when the Action itself is pinned.
If you wish to pin your CI workflows to a specific version, use the [`determinate-nix-action`][determinate-nix-action].
This GitHub Action uses the most recent version of Determinate Nix Installer, even when the Action itself is pinned.
If you wish to pin your CI workflows to a specific Determinate Nix version, use the [`determinate-nix-action`][determinate-nix-action].
That Action is updated and tagged for every Determinate release.
The `DeterminateSystems/determinate-nix-action@v3.5.2` reference, for example, always installs Determinate Nix v3.5.2.
@@ -84,8 +88,8 @@ Differing from the upstream [Nix](https://github.com/NixOS/nix) installer script
- the `nix-command` and `flakes` features are enabled
- `bash-prompt-prefix` is set
- `auto-optimise-store` is set to `true` (On Linux only)
* `extra-nix-path` is set to `nixpkgs=flake:nixpkgs`
* `max-jobs` is set to `auto`
- `extra-nix-path` is set to `nixpkgs=flake:nixpkgs`
- `max-jobs` is set to `auto`
- KVM is enabled by default.
- an installation receipt (for uninstalling) is stored at `/nix/receipt.json` as well as a copy of the install binary at `/nix/nix-installer`
- `nix-channel --update` is not run, `~/.nix-channels` is not provisioned
@@ -128,15 +132,32 @@ Differing from the upstream [Nix](https://github.com/NixOS/nix) installer script
| `reinstall` | Force a reinstall if an existing installation is detected (consider backing up `/nix/store`) | Boolean | `false` |
| `start-daemon` | If the daemon should be started, requires `planner: linux-multi` | Boolean | `false` |
| `trust-runner-user` | Whether to make the runner user trusted by the Nix daemon | Boolean | `true` |
| `summarize` | Whether to add a build summary and timeline chart to the GitHub job summary | Boolean | `true` |
| `diagnostic-endpoint` | Diagnostic endpoint url where the installer sends install [diagnostic reports](https://github.com/DeterminateSystems/nix-installer#diagnostics) to, to disable set this to an empty string | string | `https://install.determinate.systems/nix-installer/diagnostic` |
| `proxy` | The proxy to use (if any), valid proxy bases are `https://$URL`, `http://$URL` and `socks5://$URL` | string | |
| `ssl-cert-file` | An SSL cert to use (if any), used for fetching Nix and sets `NIX_SSL_CERT_FILE` for Nix | string | |
## Installing upstream Nix
Although Determinate Nix is the default, you can also use this Action to install [upstream Nix][upstream].
Make sure to set `determinate: false` in the Action's configuration:
```yaml
- uses: DeterminateSystems/nix-installer-action@main
with:
determinate: false
```
This option will be available until **January 1, 2026**, at which point installing upstream Nix using this Action will no longer be possible.
[apfs]: https://en.wikipedia.org/wiki/Apple_File_System
[backtrace]: https://doc.rust-lang.org/std/backtrace/index.html#environment-variables
[dependabot-actions]: https://github.com/DeterminateSystems/determinate-nix-action?tab=readme-ov-file#-automate-updates-with-dependabot
[det-nix]: https://docs.determinate.systems/determinate-nix
[determinate-nix-action]: https://github.com/DeterminateSystems/determinate-nix-action
[github token]: https://docs.github.com/en/actions/security-guides/automatic-token-authentication
[installer]: https://github.com/DeterminateSystems/nix-installer
[planner]: https://github.com/determinateSystems/nix-installer#usage
[profile]: https://nixos.org/manual/nix/stable/package-management/profiles
[tracing directives]: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives
[upstream]: https://github.com/NixOS/nix
+4 -1
View File
@@ -126,6 +126,9 @@ inputs:
trust-runner-user:
description: Whether to make the runner user trusted by the Nix daemon
default: true
summarize:
description: Whether to add a build summary and timeline chart to the GitHub job summary
default: true
nix-installer-branch:
description: (deprecated) The branch of `nix-installer` to use (conflicts with `nix-installer-tag`, `nix-installer-revision`, `nix-installer-pr`)
required: false
@@ -147,6 +150,6 @@ inputs:
default: false
runs:
using: "node20"
using: "node24"
main: "dist/index.js"
post: "dist/index.js"
Generated Vendored
+74247 -66980
View File
File diff suppressed because one or more lines are too long
Generated
+6 -21
View File
@@ -1,36 +1,21 @@
{
"nodes": {
"flake-schemas": {
"locked": {
"lastModified": 1693491534,
"narHash": "sha256-ifw8Td8kD08J8DxFbYjeIx5naHcDLz7s2IFP3X42I/U=",
"rev": "c702cbb663d6d70bbb716584a2ee3aeb35017279",
"revCount": 21,
"type": "tarball",
"url": "https://api.flakehub.com/f/pinned/DeterminateSystems/flake-schemas/0.1.1/018a4c59-80e1-708a-bb4d-854930c20f72/source.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://flakehub.com/f/DeterminateSystems/flake-schemas/%2A.tar.gz"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1696879762,
"narHash": "sha256-Ud6bH4DMcYHUDKavNMxAhcIpDGgHMyL/yaDEAVSImQY=",
"rev": "f99e5f03cc0aa231ab5950a15ed02afec45ed51a",
"revCount": 534224,
"lastModified": 1777954456,
"narHash": "sha256-hGdgeU2Nk87RAuZyYjyDjFL6LK7dAZN5RE9+hrDTkDU=",
"rev": "549bd84d6279f9852cae6225e372cc67fb91a4c1",
"revCount": 992384,
"type": "tarball",
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.534224%2Brev-f99e5f03cc0aa231ab5950a15ed02afec45ed51a/018b1d3c-12f0-76a5-b796-7668d7633f08/source.tar.gz"
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.992384%2Brev-549bd84d6279f9852cae6225e372cc67fb91a4c1/019df915-70b5-73a2-a5a4-63c620b45d9f/source.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.0.tar.gz"
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1"
}
},
"root": {
"inputs": {
"flake-schemas": "flake-schemas",
"nixpkgs": "nixpkgs"
}
}
+34 -20
View File
@@ -2,30 +2,44 @@
{
description = "Development environment for the Nix Installer action for GitHub.";
inputs = {
flake-schemas.url = "https://flakehub.com/f/DeterminateSystems/flake-schemas/*.tar.gz";
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.0.tar.gz";
};
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1";
outputs = { self, flake-schemas, nixpkgs }:
outputs =
{ self, ... }@inputs:
let
supportedSystems = [ "x86_64-linux" "aarch64-darwin" "aarch64-linux" ];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
supportedSystems = [
"x86_64-linux"
"aarch64-darwin"
];
forEachSupportedSystem =
f:
inputs.nixpkgs.lib.genAttrs supportedSystems (
system:
f {
inherit system;
pkgs = import inputs.nixpkgs { inherit system; };
}
);
in
{
schemas = flake-schemas.schemas;
devShells = forEachSupportedSystem (
{ pkgs, system }:
{
default = pkgs.mkShell {
packages = with pkgs; [
nodejs_latest
self.formatter.${system}
devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
nodejs_latest
nixpkgs-fmt
nodePackages_latest.pnpm
nodePackages_latest.typescript-language-server
];
};
});
# Keep people from accidentally running pnpm
(writeScriptBin "pnpm" ''
echo "pnpm is no longer used in this repo; use npm instead"
exit 1
'')
];
};
}
);
formatter = forEachSupportedSystem ({ pkgs, ... }: pkgs.nixfmt);
};
}
+8097
View File
File diff suppressed because it is too large Load Diff
+9 -9
View File
@@ -12,7 +12,7 @@
"lint": "eslint src/**/*.ts",
"package": "ncc build",
"test": "vitest --watch false",
"all": "pnpm run test && pnpm run format && pnpm run lint && pnpm run build && pnpm run package"
"all": "npm run test && npm run format && npm run lint && npm run build && npm run package"
},
"repository": {
"type": "git",
@@ -26,17 +26,17 @@
},
"homepage": "https://github.com/DeterminateSystems/nix-installer-action#readme",
"dependencies": {
"@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1",
"@actions/github": "^6.0.1",
"@actions/core": "^3.0.0",
"@actions/exec": "^3.0.0",
"@actions/github": "^9.0.0",
"detsys-ts": "github:DeterminateSystems/detsys-ts",
"got": "^14.6.2",
"got": "^14.6.6",
"string-argv": "^0.3.2",
"vitest": "^3.2.4"
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/node": "^20.19.24",
"@types/node": "^20.19.37",
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@vercel/ncc": "^0.38.4",
@@ -44,9 +44,9 @@
"eslint-import-resolver-typescript": "^3.10.1",
"eslint-plugin-github": "^4.10.2",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-prettier": "^5.5.4",
"prettier": "^3.6.2",
"tsup": "^8.5.0",
"eslint-plugin-prettier": "^5.5.5",
"prettier": "^3.8.1",
"tsup": "^8.5.1",
"typescript": "^5.9.3"
}
}
-6478
View File
File diff suppressed because it is too large Load Diff
+31 -6
View File
@@ -88,6 +88,7 @@ class NixInstallerAction extends DetSysAction {
startDaemon: boolean;
trustRunnerUser: boolean;
runnerOs: string | undefined;
summarize: boolean;
constructor() {
if (platform.getArchOs() === "X64-macOS") {
@@ -152,6 +153,7 @@ class NixInstallerAction extends DetSysAction {
this.reinstall = inputs.getBool("reinstall");
this.startDaemon = inputs.getBool("start-daemon");
this.trustRunnerUser = inputs.getBool("trust-runner-user");
this.summarize = inputs.getBool("summarize");
this.runnerOs = process.env["RUNNER_OS"];
}
@@ -164,12 +166,14 @@ class NixInstallerAction extends DetSysAction {
async post(): Promise<void> {
await this.annotateMismatches();
try {
await this.summarizeExecution();
} catch (err: unknown) {
this.recordEvent("summarize-execution:error", {
exception: stringifyError(err),
});
if (this.summarize) {
try {
await this.summarizeExecution();
} catch (err: unknown) {
this.recordEvent("summarize-execution:error", {
exception: stringifyError(err),
});
}
}
await this.cleanupNoSystemd();
await this.reportOverall();
@@ -392,6 +396,7 @@ class NixInstallerAction extends DetSysAction {
}
extraConf += "\n";
}
extraConf += `build-provenance-tags = ${JSON.stringify(this.getBuildProvenanceTags())}\n`;
if (this.extraConf !== null && this.extraConf.length !== 0) {
extraConf += this.extraConf.join("\n");
extraConf += "\n";
@@ -417,6 +422,26 @@ class NixInstallerAction extends DetSysAction {
return executionEnv;
}
getBuildProvenanceTags(): Record<string, string> {
const mapping = {
GITHUB_WORKFLOW_REF: "github_workflow_ref",
GITHUB_WORKFLOW_SHA: "github_workflow_sha",
GITHUB_SHA: "github_sha",
GITHUB_RUN_ATTEMPT: "github_run_attempt",
GITHUB_RUN_ID: "github_run_id",
GITHUB_RUN_NUMBER: "github_run_number",
GITHUB_JOB: "github_job",
GITHUB_REF: "github_ref",
GITHUB_REPOSITORY: "github_repository",
GITHUB_SERVER_URL: "github_server_url",
};
const tags = Object.entries(mapping)
.map(([sourceKey, targetKey]) => [targetKey, process.env[sourceKey]])
.filter(([_, value]) => value !== undefined);
return { ...Object.fromEntries(tags), builder: "github-actions" };
}
private get installerArgs(): string[] {
const args = ["install"];
+1 -1
View File
@@ -5,7 +5,7 @@ export default defineConfig({
name,
entry: ["src/index.ts"],
format: ["esm"],
target: "node20",
target: "node24",
bundle: true,
splitting: false,
clean: true,
+5
View File
@@ -0,0 +1,5 @@
export default {
test: {
exclude: ["**/node_modules/**", "**/.direnv/**"],
},
};