tvl-depot/playbooks/nix_gcr/cloud_run.nix
William Carroll 0c71fc9d1d Drop support for dir-locals.nix, <nixpkgs>, etc.
In the spirit of Marie Kondo, I'm tidying up!

TL;DR:
- Prefer .envrc `use_nix` and delete all dir-locals.nix files
- Remove ~all references to <nixpkgs>, <unstable>, <depot> and prefer
  referencing each with briefcase.third_party.{pkgs,unstable,depot}
- Delete nixBufferFromShell function since I was only using that in
  dir-locals.nix files
2020-08-20 11:26:32 +01:00

14 lines
274 B
Nix

{ pkgs, depot, ... }:
pkgs.dockerTools.buildLayeredImage {
name = "gemma";
tag = "latest";
config.ExposedPorts = {
"4242" = {};
};
config.Env = [
"GEMMA_CONFIG=${./config.lisp}"
];
config.Cmd = [ "${depot.fun.gemma}/bin/gemma" ];
maxLayers = 120;
}