Skip to content

Commit

Permalink
ci: enable unfree packages via environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikoTan committed Oct 23, 2024
1 parent fe531b1 commit ee7caab
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ jobs:
experimental-features = nix-command flakes
nix_path: nixpkgs=channel:nixos-unstable

- name: Allow Unfree Nixpkgs
run: |
mkdir -p $HOME/.config/nixpkgs
echo '{ allowUnfree = true; }' >> $HOME/.config/nixpkgs/config.nix
- name: Cache Nix store
uses: actions/cache@v2
with:
Expand All @@ -48,7 +43,9 @@ jobs:
- name: Build NixOS configuration for ${{ matrix.system }}
run: |
nix build .#nixosConfigurations.${{ matrix.system }}.config.system.build.vm
nix build --impure .#nixosConfigurations.${{ matrix.system }}.config.system.build.vm
env:
NIXPKGS_ALLOW_UNFREE: 1

- name: Run NixOS tests for ${{ matrix.system }}
run: |
Expand Down

0 comments on commit ee7caab

Please sign in to comment.