Skip to content

Instantly share code, notes, and snippets.

@mtn
Created June 21, 2020 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtn/4e81b074eb3e53ccd3b6bf908a71c367 to your computer and use it in GitHub Desktop.
Save mtn/4e81b074eb3e53ccd3b6bf908a71c367 to your computer and use it in GitHub Desktop.
services.uwsgi.instance = {
type = "emperor";
vassals.hello = {
type = "normal";
master = true;
workers = 2;
http = ":8000";
module = "wsgi:app";
chdir = /home/mtn/Documents/app;
pythonPackages = self: with self; let
src = pkgs.fetchFromGitHub {
owner = "nix-community";
repo = "poetry2nix";
rev = "e7c69a288c10e4d97816fdabda5ae3f38e21914e";
sha256 = "1sygililyh44igkj57ihyv1i0kjmj646nw80q1jrj9pvs8m97hgm";
};
in
with import "${src.out}/overlay.nix" pkgs pkgs;
poetry2nix.mkPoetryApplication {
projectDir = /home/mtn/Documents/app;
}.dependencyEnv;
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment