Skip to content

Instantly share code, notes, and snippets.

@gdamjan
Created May 21, 2024 17:44
Show Gist options
  • Save gdamjan/63a908f03d4ea462f3791b1c15e2dcb1 to your computer and use it in GitHub Desktop.
Save gdamjan/63a908f03d4ea462f3791b1c15e2dcb1 to your computer and use it in GitHub Desktop.
my nix docker image

Build

podman image pull nixos/nix:latest
podman build -t nix .

Use

podman run -ti --rm -v $PWD:/work -w /work nix:latest
FROM nixos/nix:latest
RUN echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment