From b6c49abba028bea76ba85966beb1e4149d5865be Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Fri, 19 Feb 2016 17:10:05 +0300 Subject: [PATCH] uwsgi service: update documentation --- nixos/modules/services/web-servers/uwsgi.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/nixos/modules/services/web-servers/uwsgi.nix b/nixos/modules/services/web-servers/uwsgi.nix index 39f7047af2d..e6c25e6215c 100644 --- a/nixos/modules/services/web-servers/uwsgi.nix +++ b/nixos/modules/services/web-servers/uwsgi.nix @@ -113,21 +113,24 @@ in { vassals = { moin = { type = "normal"; - python2Packages = self: with self; [ moinmoin ]; + pythonPackages = self: with self; [ moinmoin ]; socket = "${config.services.uwsgi.runDir}/uwsgi.sock"; }; }; } ''; description = '' - uWSGI configuration. This awaits either a path to file or a set which will be made into one. - If given a set, it awaits an attribute type which can be either normal - or emperor. + uWSGI configuration. It awaits an attribute type inside which can be either + normal or emperor. + + For normal mode you can specify pythonPackages as a function + from libraries set into a list of libraries. pythonpath will be set accordingly. - For normal mode you can specify python2Packages and - python3Packages as functions from libraries set into lists of libraries. For emperor mode, you should use vassals attribute which should be either a set of names and configurations or a path to a directory. + + Other attributes will be used in configuration file as-is. Notice that you can redefine + plugins setting here. ''; };