[Nix-dev] apache submodules (production + sandbox) + drupal package
Hi all. I packaged drupal (sort of). I have a tarball with all the files in the standard drupal distribution + all the modules I need for my site. My apache submodule nix expression extracts this tarball and fills in the basic parameters (database type/username/password; public and private upload directories; file size limits). Nix expression is here: https://github.com/bnordgren/nixos-1/blob/rxdrupal/modules/services/web-servers/apache-httpd/rxdrupal.nix It works fine. Once. What I want to do is give my users a "sandbox" which is a clone of the production site. I'll set up some scripts to reset the sandbox back to the initial state nightly. That way they can practice doing stuff without fear of screwing up the production site, which is supposed to accumulate a good data set from our project. Currently, I'm trying two entries in the "extraSubmodules" having the same serviceType (see below). This doesn't seem to work. What is the recommended method of deploying two instances of the same submodule on the same apache server? services.httpd.enable = true ; services.httpd.enableSSL = true; services.httpd.sslServerCert = "/var/ssl/server.crt" ; services.httpd.sslServerKey = "/var/ssl/server.key" ; services.httpd.adminAddr = "bnordg...@fs.fed.us" ; services.httpd.extraSubservices = [ { serviceType = "tomcat-connector" ; stateDir = "/var/run/httpd" ; logDir = "/var/log/httpd" ; } { serviceType = "rxdrupal" ; publicUploadDir = "/mnt/rxcadre/drupal/public" ; privateUploadDir = "/mnt/rxcadre/drupal/private" ; urlPrefix = "/working"; dbuser = "drupal" ; dbname = "rxdata" ; dbpassword = "blahblah"; maxFileUploads = "20" ; maxUploadSize = "256M"; postMaxSize = "1024M" ; } { serviceType = "rxdrupal" ; publicUploadDir = "/mnt/rxcadre/drupal-sandbox/public" ; privateUploadDir = "/mnt/rxcadre/drupal-sandbox/private" ; urlPrefix = "/working-sandbox"; dbuser = "drupal" ; dbname = "rxdata-sandbox" ; dbpassword = "blahblah"; maxFileUploads = "20" ; maxUploadSize = "256M"; postMaxSize = "1024M" ; } ] ; Also, I can work up a "generic" drupal package if there's any value in it. I'm having troubles envisioning how it would fit in with the nix store. Sure, I can package up the basic drupal release, but if we're serving files straight out of the nix store, no one can ever add a module because the webapp is read only. ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Adding xfce4 panel plugins
On Fri, Oct 12, 2012 at 8:38 AM, Eduard Carreras i Nadal < ecarre...@gmail.com> wrote: > > El 12/10/2012 1:39, "Eelco Dolstra" va > escriure: > > > > > Hi, > > > > On 11/10/12 19:32, Eelco Dolstra wrote: > > > > > However, a much cleaner solution would be to make the panel use > $XDG_DATA_DIRS > > > for finding the *.desktop files of the plugins. That would be more > general > > > because it would allow users to have their own plugins in their home > directories > > > (so upstream might be willing to accept/implement something like this). > > > > Or maybe not, since Xfce apparently used to do this: > > > > https://bugzilla.xfce.org/show_bug.cgi?id=5455 > > Wow, then I will patch the LIBDIR as I've done with DATADIR. > Patched works fine, I've submited a pull-request for comments: https://github.com/NixOS/nixpkgs/pull/150 Cheers, -- Eduard Carreras i Nadal ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev