Skip to content

Commit

Permalink
ci: make init system of nix installer configurable to support docker
Browse files Browse the repository at this point in the history
Signed-off-by: Thing-han, Lim <[email protected]>
  • Loading branch information
potsrevennil committed Jul 22, 2024
1 parent fe6bc2e commit 7624713
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/setup-nix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@ inputs:
description: The name of the devShell
required: true
default: 'default'
init:
description: The init system to configure ('systemd' or 'none')
required: false
default: 'none'

runs:
using: composite
steps:
- uses: DeterminateSystems/nix-installer-action@v12
with:
init: ${{ inputs.init }}
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Prepare nix dev shell
shell: nix develop .#${{ inputs.devShell }} -c bash -e {0}
Expand Down

0 comments on commit 7624713

Please sign in to comment.