add nix image

This commit is contained in:
Osman Faruk Bayram 2024-12-07 21:17:12 +03:00
parent 196ed27c40
commit ee62a517c7
2 changed files with 6 additions and 2 deletions

View file

@ -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:

4
nix/Dockerfile Normal file
View file

@ -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