Skip to content

Instantly share code, notes, and snippets.

@shapr
Created April 16, 2022 22:33
Show Gist options
  • Save shapr/d5c30ade3bbb8a7a8f41a11e7885673c to your computer and use it in GitHub Desktop.
Save shapr/d5c30ade3bbb8a7a8f41a11e7885673c to your computer and use it in GitHub Desktop.
define, build, and load docker container via nix?
virtualisation.oci-containers = {
backend = "docker";
containergs = {
our-container-image = {
autoStart = false;
image = "our-container-image";
imageFile = pkgs.dockerTools.buildImage {
name = "our-container-image";
contents = with pkgs; [ git git-lfs gitlab-runner ];
};
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment