-
-
Save mtn/4e81b074eb3e53ccd3b6bf908a71c367 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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