diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index a20b313..9974639 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -7,7 +7,7 @@ jobs: build: strategy: matrix: - image: [pyenv, nix-example] + image: [pyenv, nix-example, nix] runs-on: ubuntu-latest steps: - name: Checkout @@ -18,7 +18,7 @@ jobs: with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_TOKEN }} - + - name: Build and push uses: docker/build-push-action@v4 with: diff --git a/nix/Dockerfile b/nix/Dockerfile new file mode 100644 index 0000000..935f0d7 --- /dev/null +++ b/nix/Dockerfile @@ -0,0 +1,4 @@ +FROM nixos/nix:2.25.3 +RUN echo "nixpkgs.config.allowUnfree = true" >> /etc/nix/nix.conf +# enable nix-command and flakes +RUN echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf